diff options
author | nebkat <nebkat@teamhacksung.org> | 2012-12-15 19:59:45 +0000 |
---|---|---|
committer | nebkat <nebkat@teamhacksung.org> | 2012-12-15 22:49:06 +0000 |
commit | 11b11c53a8638cbb0d26d7f55ca3d367b30f0cb2 (patch) | |
tree | e8be41c12621d1d93e55f9d37fa030ee21a16dbc /src/com/cyanogenmod/trebuchet/preference | |
parent | bbf4dd7599f8b60e48937cf16c9b1466f5466e97 (diff) | |
download | packages_apps_trebuchet-11b11c53a8638cbb0d26d7f55ca3d367b30f0cb2.zip packages_apps_trebuchet-11b11c53a8638cbb0d26d7f55ca3d367b30f0cb2.tar.gz packages_apps_trebuchet-11b11c53a8638cbb0d26d7f55ca3d367b30f0cb2.tar.bz2 |
Transition Effects
Change-Id: I9191cad9ad9950144fffd75e5140ae11759eecc8
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/preference')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/preference/PreferencesProvider.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/trebuchet/preference/PreferencesProvider.java b/src/com/cyanogenmod/trebuchet/preference/PreferencesProvider.java index 6e4f536..8109289 100644 --- a/src/com/cyanogenmod/trebuchet/preference/PreferencesProvider.java +++ b/src/com/cyanogenmod/trebuchet/preference/PreferencesProvider.java @@ -78,6 +78,11 @@ public final class PreferencesProvider { return preferences.getBoolean("ui_homescreen_general_hide_icon_labels", false); } public static class Scrolling { + public static Workspace.TransitionEffect getTransitionEffect(Context context, String def) { + final SharedPreferences preferences = context.getSharedPreferences(PREFERENCES_KEY, 0); + return Workspace.TransitionEffect.valueOf( + preferences.getString("ui_homescreen_scrolling_transition_effect", def)); + } public static boolean getScrollWallpaper(Context context) { final SharedPreferences preferences = context.getSharedPreferences(PREFERENCES_KEY, 0); return preferences.getBoolean("ui_homescreen_scrolling_scroll_wallpaper", true); @@ -116,6 +121,17 @@ public final class PreferencesProvider { final SharedPreferences preferences = context.getSharedPreferences(PREFERENCES_KEY, 0); return preferences.getBoolean("ui_drawer_widgets_join_apps", true); } + public static class Scrolling { + public static AppsCustomizePagedView.TransitionEffect getTransitionEffect(Context context, String def) { + final SharedPreferences preferences = context.getSharedPreferences(PREFERENCES_KEY, 0); + return AppsCustomizePagedView.TransitionEffect.valueOf( + preferences.getString("ui_drawer_scrolling_transition_effect", def)); + } + public static boolean getFadeInAdjacentScreens(Context context) { + final SharedPreferences preferences = context.getSharedPreferences(PREFERENCES_KEY, 0); + return preferences.getBoolean("ui_drawer_scrolling_fade_adjacent_screens", false); + } + } public static class Indicator { public static boolean getShowScrollingIndicator(Context context) { final SharedPreferences preferences = context.getSharedPreferences(PREFERENCES_KEY, 0); |