summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/SettingsActivity.java
Commit message (Collapse)AuthorAgeFilesLines
* Fixing crash on LollipopSunny Goyal2016-06-081-3/+3
| | | | | | | Fragment.getContext is available from MNC onwards. Using getActivity instead Change-Id: I99ef98947879ff165895fc76facb438cd4b8b414
* Making the 'Allow rotation' setting dependent on system stateSunny Goyal2016-05-161-41/+56
| | | | | | | | | | | The setting will not be available on a tablet, where rotation is always enabled. On mobiles, it will be disabled when auto-rotate is disabled in display settings. Also removing content provider dependency from settings, as its in the same process as launcher. Bug: 28704055 Change-Id: Ibe6b1e67411fb0e4b2e36446710f463e4a3d6883
* Fixing crash when getActivity is nullSunny Goyal2016-05-021-2/+2
| | | | | | > Also changing the default value of preferences to true Change-Id: I0a80d9b6b76d7210b12c952cf8e991a3eb327e5c
* Chaning the behavior of settings activity.Sunny Goyal2016-05-021-14/+35
| | | | | | | | > Making all twoState prefs backed by content provider > Using the stadard intent defined in N for settings > Using SharedPrefsListener instead of LauncherProvider Change-Id: I8272f54aa780bc0436e3d0aa89096a4bd2a9194f
* Using content provider to update launcher settingsSunny Goyal2015-06-121-16/+25
| | | | | | | | > Removing cross process preference file > Removed broadcast listener management for settings changes > Defining content provider method to get/set laucnehr preferences Change-Id: Ida36eac0ab17c1d48fedc9404817a53a89b36c4f
* Use a broadcast receiver instead of a settings observer.Rahul Chaturvedi2015-06-041-4/+18
| | | | | | | | Settings observer doesn't work if a setting is modified in another process, hence we instead register a receiver which listens for a signal from the settings process that the rotation preference has changed. Change-Id: I570e3c67bb64a32347e84ca00a8ac31d9010eac3
* Add the Allow Rotation setting to Launcher3.Rahul Chaturvedi2015-06-011-0/+53
This CL adds a Settings activity along with the code needed to provide a "Allow Rotation" setting to all phones and tablets. This setting is set to false for phones and true for tablets. On changing the setting from unlocked to locked, the launcher (and the Settings activity) will get locked to the orientation the user was in when he disabled "Allow Rotation". This is consistent with how the natural rotation feature of Android works. Change-Id: I8a1c59d1fa0bb9262530cad96e0a9bdbab0d9344