Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

packages-apps-Launcher: Commit

packages/apps/Launcher


Commit MetaInfo

Revisioncaca14e7906e0f2f8a92a19659002a60e6d3ee73 (tree)
Time2010-04-18 01:09:17
AuthorYi Sun <beyounn@gmai...>
CommiterChih-Wei Huang

Log Message

fixed the layout for wallpaper

Change Summary

Incremental Difference

--- a/src/com/android/launcher/Launcher.java
+++ b/src/com/android/launcher/Launcher.java
@@ -116,7 +116,7 @@ public final class Launcher extends Activity implements View.OnClickListener, On
116116 static final String EXTRA_CUSTOM_WIDGET = "custom_widget";
117117 static final String SEARCH_WIDGET = "search_widget";
118118
119- static final int WALLPAPER_SCREENS_SPAN = 2;
119+ static final int WALLPAPER_SCREENS_SPAN = 1;
120120 static final int SCREEN_COUNT = 3;
121121 static final int DEFAULT_SCREN = 1;
122122 static final int NUMBER_CELLS_X = 4;
@@ -341,7 +341,7 @@ public final class Launcher extends Activity implements View.OnClickListener, On
341341 WallpaperManager wpm = (WallpaperManager)getSystemService(WALLPAPER_SERVICE);
342342
343343 Display display = getWindowManager().getDefaultDisplay();
344- boolean isPortrait = display.getWidth() < display.getHeight();
344+ boolean isPortrait = display.getWidth() > display.getHeight();
345345
346346 final int width = isPortrait ? display.getWidth() : display.getHeight();
347347 final int height = isPortrait ? display.getHeight() : display.getWidth();
Show on old repository browser