diff options
author | nebkat <nebkat@teamhacksung.org> | 2012-11-30 19:41:34 +0000 |
---|---|---|
committer | nebkat <nebkat@teamhacksung.org> | 2012-12-01 21:55:43 +0000 |
commit | 9180c157cc84b76ee92d26d2ee4f199da4fc0038 (patch) | |
tree | 320b5552014dfb15bf000c15a728c02796bd8704 /src/com/cyanogenmod/trebuchet/preference | |
parent | e74a54343ce7896b5005154e8bcbc7d5f06c7808 (diff) | |
download | android_packages_apps_Trebuchet-9180c157cc84b76ee92d26d2ee4f199da4fc0038.tar.gz android_packages_apps_Trebuchet-9180c157cc84b76ee92d26d2ee4f199da4fc0038.tar.bz2 android_packages_apps_Trebuchet-9180c157cc84b76ee92d26d2ee4f199da4fc0038.zip |
Wallpaper Hack
Normally the wallpaper is drawn by the system in a separate window.
This means that the wallpaper can often be drawn out of sync with
the launcher. This hack gets the wallpaper bitmap and draws it
manually (in sync with the rest of the launcher). This increases
performance greatly.
Change-Id: I6aaf9c574cabcf2ee0bfeef1076140421108331d
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/preference')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/preference/PreferencesProvider.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/trebuchet/preference/PreferencesProvider.java b/src/com/cyanogenmod/trebuchet/preference/PreferencesProvider.java index b4228c3eb..b6c983bf9 100644 --- a/src/com/cyanogenmod/trebuchet/preference/PreferencesProvider.java +++ b/src/com/cyanogenmod/trebuchet/preference/PreferencesProvider.java @@ -83,6 +83,10 @@ public final class PreferencesProvider { final SharedPreferences preferences = context.getSharedPreferences(PREFERENCES_KEY, 0); return preferences.getBoolean("ui_homescreen_scrolling_scroll_wallpaper", true); } + public static boolean getWallpaperHack(Context context) { + final SharedPreferences preferences = context.getSharedPreferences(PREFERENCES_KEY, 0); + return preferences.getBoolean("ui_homescreen_scrolling_wallpaper_hack", true); + } } public static class Indicator { public static boolean getShowScrollingIndicator(Context context) { |