Abel Tesfaye
febccc4990
Cleanup listener reference in SmartAutoRotate
...
This will fix a memory leak caused by dangling SensorPrivacy listeners.
Test: opened/closed display and auto-rotate fragment and verified no
leaks in android studio profiler
Bug: 244382423
Change-Id: Ie2d070e796fa473e8f2794c9934c62edc4f7092c
2022-09-09 17:12:08 +00:00
Abel Tesfaye
f60885a040
Hide battery saver warning and camera privacy lock on devices that do not support smart-auto-rotate
...
Bug: 191924078
Test: locally on crosshatch
Change-Id: I8464860c3d1d59c5d4549e7c488457e92054dbba
2021-07-01 19:17:37 +00:00
Abel Tesfaye
a9ddae85e1
Fix LifecycleObserver implementation in SmartAutoRotateBatterySaverController
...
Test: locally with flame, make RunSettingsRoboTests -j96
ROBOTEST_FILTER=SmartAutoRotateBatterySaverControllerTest,SmartAutoRotateControllerTest
Bug: 188448874
Change-Id: I30ad19da617a166989e9c93e8d2b19263d58419f
2021-06-01 23:45:43 +00:00
Abel Tesfaye
0465239d4a
Update battery saver string and make r lowercase in Auto rotate
...
Bug: 188843414
Test: none
Change-Id: I449fbe3d67eafb9ccdcef7719abdeb31eeb69b3f
2021-05-25 19:07:30 +00:00
Abel Tesfaye
88a773892b
Add warning message when power save mode is enabled for smart auto rotate settings fragment
...
Test: locally with flame, make RunSettingsRoboTests -j96
ROBOTEST_FILTER=SmartAutoRotateBatterySaverControllerTest,SmartAutoRotateControllerTest
Bug: 186690152
Change-Id: Ibac90a4edd4631e8256da79d0594ac7704b5f8f7
2021-05-10 19:30:04 +00:00