diff options
author | Adnan Begovic <adnan@cyngn.com> | 2015-11-05 16:41:06 -0800 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-11-05 17:06:22 -0800 |
commit | 8c65e15e74135f93580d8d67d08de4332e6d03a6 (patch) | |
tree | ddcc5c9f073d429f836ababb0ec8223ae9188d32 /packages/CMSettingsProvider/src | |
parent | d4ae0653e26f5bffd9c4870af6fcca3e1354b5c9 (diff) | |
download | vendor_cmsdk-8c65e15e74135f93580d8d67d08de4332e6d03a6.zip vendor_cmsdk-8c65e15e74135f93580d8d67d08de4332e6d03a6.tar.gz vendor_cmsdk-8c65e15e74135f93580d8d67d08de4332e6d03a6.tar.bz2 |
cmsdk: Finish migrating "last app" logic to cmsdk.
Change-Id: I94dbd41639c734f53000b975685bf42d046a7e84
Diffstat (limited to 'packages/CMSettingsProvider/src')
-rw-r--r-- | packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java index ff0173c..5684fdf 100644 --- a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java +++ b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMSettingsProvider.java @@ -158,7 +158,7 @@ public class CMSettingsProvider extends ContentProvider { } /* @hide */ - private static class LegacyCMSettings { + static class LegacyCMSettings { /** * Whether to allow one finger quick settings expansion on the right side of the statusbar. * @deprecated Use {@link android.provider.Settings.System#QS_QUICK_PULLDOWN} instead @@ -274,6 +274,15 @@ public class CMSettingsProvider extends ContentProvider { * 'com.google.vending' -> 'com.white.theme' */ public static final String THEME_PKG_CONFIGURATION_PERSISTENCE_PROPERTY = "themeConfig"; + + /** + * The global recents long press activity chosen by the user. + * This setting is stored as a flattened component name as + * per {@link ComponentName#flattenToString()}. + * + * @hide + */ + public static final String RECENTS_LONG_PRESS_ACTIVITY = "recents_long_press_activity"; } /** @@ -335,6 +344,9 @@ public class CMSettingsProvider extends ContentProvider { CMSettings.Secure.NAVIGATION_RING_TARGETS[i]); } + secureToCmSettingsMap.put(LegacyCMSettings.RECENTS_LONG_PRESS_ACTIVITY, + CMSettings.Secure.RECENTS_LONG_PRESS_ACTIVITY); + rowsMigrated = migrateCMSettingsForTable(userId, CMDatabaseHelper.CMTableNames.TABLE_SECURE, secureToCmSettingsMap); if (LOCAL_LOGV) Log.d(TAG, "Migrated " + rowsMigrated + " to CM secure table"); |