Skip to content

Commit

Permalink
Small fixes for default/config values
Browse files Browse the repository at this point in the history
  • Loading branch information
AnderWeb committed Nov 29, 2010
1 parent 152ed30 commit 7f69605
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@
<string name="config_drawer_style">1</string>
<bool name="config_ab_tint">false</bool>
<integer name="config_ab_tint_color">0xffffffff</integer>
<bool name="config_wallpaer_scroll">true</bool>
<bool name="config_wallpaper_scroll">true</bool>
</resources>
4 changes: 2 additions & 2 deletions res/xml/launcher_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
android:summary="@string/pref_summary_hide_statusbar"
android:key="hideStatusbar" />
<CheckBoxPreference android:title="@string/pref_title_wallpaper_scrolling"
android:defaultValue="true"
android:defaultValue="@bool/config_wallpaper_scroll"
android:summary="@string/pref_summary_wallpaper_scrolling"
android:key="wallpaper_scrolling" />
<PreferenceCategory
Expand Down Expand Up @@ -108,7 +108,7 @@
android:title="@string/pref_title_zoom_effect_speed"
android:summary="@string/pref_summary_zoom_effect_speed"
android:dialogMessage="@string/pref_dialog_zoom_effect_speed"
android:key="zoomSpeed" android:defaultValue="400"
android:key="zoomSpeed" android:defaultValue="@integer/zoomSpeed"
android:max="1700" />
<CheckBoxPreference android:title="@string/pref_title_drawer_labels"
android:defaultValue="@bool/config_drawerLabels"
Expand Down
2 changes: 1 addition & 1 deletion src/com/android/launcher/AlmostNexusSettingsHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public static int getDesktopOrientation(Context context) {
}
public static boolean getWallpaperScrolling(Context context) {
SharedPreferences sp = context.getSharedPreferences(ALMOSTNEXUS_PREFERENCES, Context.MODE_PRIVATE);
boolean newD = sp.getBoolean("wallpaper_scrolling", context.getResources().getBoolean(R.bool.config_wallpaer_scroll));
boolean newD = sp.getBoolean("wallpaper_scrolling", context.getResources().getBoolean(R.bool.config_wallpaper_scroll));
return newD;
}
public static void setDesktopScreens(Context context,int screens) {
Expand Down

0 comments on commit 7f69605

Please sign in to comment.