The lib does not work on some Huawei/Xiaomi devices with custom gesture navigation. There should be a way to hide app thumbnail in Recent Apps to cover this case.
The NavigationBarObserver only observe when the user change the navigation mode in Settings, so we need to define a isGestureEnabled check to apply using FLAG_SECURE when opening the app in custom gesture navigation mode.
We also provide a new flag enableSecureFlagOnDevicesWithCustomGestureNavigation beside enableSecureFlagOnLowApiDevices in RecentAppsThumbnailHidingActivity to manually turn on each cases to cover missed cases by using FLAG_SECURE β .
Solves #8
What happened π
The lib does not work on some Huawei/Xiaomi devices with custom gesture navigation. There should be a way to hide app thumbnail in Recent Apps to cover this case.
Insight π
FLAG_SECURE
.NavigationBarObserver
only observe when the user change the navigation mode in Settings, so we need to define a isGestureEnabled check to apply usingFLAG_SECURE
when opening the app in custom gesture navigation mode.enableSecureFlagOnLowApiDevices
inRecentAppsThumbnailHidingActivity
to manually turn on each cases to cover missed cases by usingFLAG_SECURE
β .Proof Of Work πΉ
https://user-images.githubusercontent.com/16315358/131106880-e3d31c63-0f8d-4361-8730-a7efed53a8d9.mp4
https://user-images.githubusercontent.com/16315358/131238660-4c249cb0-e73f-47c2-9e42-3fd953f0f55a.mp4