summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/gestures/GesturePreferenceController.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix videoPreference is broken when switch to multiple windowRaff Tsai2019-12-041-7/+7
| | | | | | | | Fixes: 117802997 Test: robolectric, switch between multiple window and single window. The video should keep displaying. Change-Id: I97b6a4516b2591b80d9a046809ce4090fb02c80f
* Remove mVideoPaused from VideoPreferenceRaff Tsai2019-11-011-24/+2
| | | | | | | | | | - We destoryed the MediaPlayer when VideoPreference is onPause(). When VideoPreference is onResumed, MediaPlayer always start from pause state, we don't need a data save/restore current video state. Bug: 143270527 Test: robolectric, manual Change-Id: I544e933e4237f6d92aeff8a7eb04b52e89d74a4a
* Partial revert Ib2396575bbc69a7cca5e9c90e113c76ff6db00b5Fan Zhang2019-04-221-0/+7
| | | | | | | | | | The previous change removed summary text for gesture settings too aggresively. We still need summary in main Settings app, just not in search. Fixes: 130652619 Test: manual Change-Id: I95ae3ca31b34a514f10993413527e987cf67d998
* Remove on/off subtext from gesture preferencecontrollersFan Zhang2019-04-171-7/+0
| | | | | | | | | | | The toggle switch next to the subtitle already shows on/off clearly. Fixes: 130652619 Fixes: 130652843 Fixes: 130653459 Fixes: 130653297 Test: robo Change-Id: Ib2396575bbc69a7cca5e9c90e113c76ff6db00b5
* Mass clean up: don't cast class when not needed.Fan Zhang2019-02-141-1/+1
| | | | | | Bug: none Test: rebuild Change-Id: Ie3f58a3d5ae99ade28a33dcac80c18de90d4d5b2
* Sort importsFan Zhang2018-08-281-4/+4
| | | | | | | | Having consistent import order will reduce chance of merge conflict between internal and external master Test: rebuild Change-Id: I0b1a170967ddcce7f388603fd521f6ed1eeba30b
* Reorder and clean up imports.Fan Zhang2018-06-181-4/+4
| | | | | Test: rebuild Change-Id: I178485c84ae7146f991fd77b6d7504b029942a68
* Convert Magnify controller to TogglePrefControllerhjchangliao2018-05-161-3/+0
| | | | | | | | | | | | | | | | | Convert below to TogglePreferenceController: MagnificationNavbarPreferenceController (Magnify with Button) MagnificationGesturesPreferenceController (Magnify with triple-tap) The two controllers share the same fragment, Add static method for set/get state in fragment, And use them in controllers and fragment. Change-Id: I2bdbdb36be71e1a3ffb557abc5a6115d48de53cf Fixes: 67997698 Fixes: 67997726 Test: make RunSettingsRoboTests
* Migrate Settings to androidx.Aurimas Liutikas2018-04-201-4/+4
| | | | | | Test: make Settings Bug: 76692459 Change-Id: I941dea40562170649bf056e675cc32e5163c0e39
* GesturesSettingPreferenceController to ToggleHJ ChangLiao2018-04-091-20/+14
| | | | | | | | | | | | | | | | | | | | | | Convert GesturesSettingPreferenceController to TogglePreferenceController, All of its children need follow the change, add setter and robotest for them: AssistGestureSettingsPreferenceController DoubleTapPowerPreferenceController DoubleTapScreenPreferenceController DoubleTwistPreferenceController PickupGesturePreferenceController SwipeToNotificationPreferenceController Change-Id: I792b2d370eea828bf345fb2b1cc3eac260eb66f4 Fixes: 74913806 Fixes: 67998110 Fixes: 67998098 Fixes: 67998048 Fixes: 67998069 Fixes: 67997452 Test: make RunSettingsRoboTests
* Fix gesture preview image visibility not set correctly.Doris Ling2017-07-201-9/+8
| | | | | | | | | | | - update for the preview image is done only in onStart()/Stop(). Move the handling to onPause()/onResume() instead so that visibility updates will also be done when switching between pages. - remove the obsolete GesturePreference class. Change-Id: I743a9d41f17aab3303201e11e5bba708ca5810ae Fix: 63783217 Test: make RunSettingsRoboTests
* Disable lift-to-wake when always-on is checkedGeoffrey Pitsch2017-07-121-0/+6
| | | | | | | | | | The setting has little to no meaning when AOD is on. Test: make ROBOTEST_FILTER=AmbientDisplayAlwaysOnPreferenceControllerTest RunSettingsRoboTests -j Bug:62391405 Change-Id:If5492227755ca81ec0bcf921a81e2bfd33a85b9c
* Automatically play the gesture video when the setting is launched.Doris Ling2017-07-111-2/+25
| | | | | | | | | - and save the video pause state on config change so that the paused video will not auto start again on screen rotation. Change-Id: I3f41849ee3063942fb4141e4556e494bc8439226 Fix: 63145847 Test: make RunSettingsRoboTests
* Make PreferenceController a mixinTony Mantler2017-06-261-3/+5
| | | | | | Bug: 62912136 Test: Existing tests in BaseSearchIndexProviderTest Change-Id: Ieda359806c09a019840b2005446c7ec8b61fdb00
* Depend on SettingsLib's version of lifecycle and FooterMixin.Juan Lang2017-05-121-4/+4
| | | | | | | | | | The implementations have been imported into SettingsLib. Setting's copy can now be removed, which this change also does. Test: Manually check battery status, which uses FooterMixin, looks OK. make RunSettingsLibRobotTests && make RunSettingsRoboTests && make RunSettingsGoogleRoboTests Change-Id: I6539605fdad80d156ff5ff249e68df4a1c412067
* Remove no-op handlePerferenceTreeClick from PrefControllersFan Zhang2016-12-071-5/+0
| | | | | | Bug: 33429853 Test: RunSettingsRoboTests Change-Id: I5633953e3d7b07f9006e541b96a24a2a769e2686
* Add video to each gesture preference screen.Fan Zhang2016-11-101-0/+89
- Refactor GesturePreference to a generic VideoPreference. - The old video_preference.xml is only for magnification video, so renamed. - And use VideoPreference in gesture setting pages. - Refactor common logic into GesturePreferenceController. Bug: 32637613 Test: RunSettingsRoboTests Change-Id: I58580b01a32873cb32c5dc5bf2ec021d5b1400cc