diff options
author | Michael Jurka <mikejurka@google.com> | 2010-08-02 13:56:46 -0700 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2010-08-02 13:56:46 -0700 |
commit | 54f7ac30f2832120faa0c2dd45e5b216ac771efb (patch) | |
tree | 0522be0c05c22b8b4713c4a36f9cf3b105898ca0 /src/com/android/launcher2/Launcher.java | |
parent | 79212d81361d1ad8c941c48f8323eb526643ca68 (diff) | |
download | android_packages_apps_Trebuchet-54f7ac30f2832120faa0c2dd45e5b216ac771efb.tar.gz android_packages_apps_Trebuchet-54f7ac30f2832120faa0c2dd45e5b216ac771efb.tar.bz2 android_packages_apps_Trebuchet-54f7ac30f2832120faa0c2dd45e5b216ac771efb.zip |
Made some temporary aesthetic improvements
- icons in the customization drawer are now much
more tightly spaced, and no longer use the
default gallery styling
- wrapped some >100 char lines
- removed "Applications" from the shortcuts
customization drawer
Diffstat (limited to 'src/com/android/launcher2/Launcher.java')
-rw-r--r-- | src/com/android/launcher2/Launcher.java | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index feb247e99..1a085a382 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -778,12 +778,14 @@ public final class Launcher extends Activity widgetChooser.setLauncher(this); FolderChooser folderChooser = (FolderChooser) findViewById(R.id.folder_chooser); - IntentListAdapter folderTypes = new FolderListAdapter(this, LiveFolders.ACTION_CREATE_LIVE_FOLDER); + IntentListAdapter folderTypes = new FolderListAdapter( + this, LiveFolders.ACTION_CREATE_LIVE_FOLDER); folderChooser.setAdapter(folderTypes); folderChooser.setLauncher(this); ShortcutChooser shortcutChooser = (ShortcutChooser) findViewById(R.id.shortcut_chooser); - IntentListAdapter shortcutTypes = new ShortcutListAdapter(this, Intent.ACTION_CREATE_SHORTCUT); + IntentListAdapter shortcutTypes = new IntentListAdapter( + this, Intent.ACTION_CREATE_SHORTCUT); shortcutChooser.setAdapter(shortcutTypes); shortcutChooser.setLauncher(this); } else { @@ -813,7 +815,12 @@ public final class Launcher extends Activity deleteZone.setLauncher(this); deleteZone.setDragController(dragController); - int deleteZoneHandleId = LauncherApplication.isScreenXLarge() ? R.id.add_button : R.id.all_apps_button_cluster; + int deleteZoneHandleId; + if (LauncherApplication.isScreenXLarge()) { + deleteZoneHandleId = R.id.add_button; + } else { + deleteZoneHandleId = R.id.all_apps_button_cluster; + } deleteZone.setHandle(findViewById(deleteZoneHandleId)); dragController.setDragScoller(workspace); @@ -2121,7 +2128,8 @@ public final class Launcher extends Activity } private boolean isCustomizationDrawerVisible() { - return mHomeCustomizationDrawer != null && mHomeCustomizationDrawer.getVisibility() == View.VISIBLE; + return mHomeCustomizationDrawer != null && + mHomeCustomizationDrawer.getVisibility() == View.VISIBLE; } private void showCustomizationDrawer() { @@ -2130,12 +2138,14 @@ public final class Launcher extends Activity closeAllApps(false); } mHomeCustomizationDrawer.setVisibility(View.VISIBLE); - mHomeCustomizationDrawer.startAnimation(AnimationUtils.loadAnimation(this, R.anim.home_customization_drawer_slide_up)); + mHomeCustomizationDrawer.startAnimation( + AnimationUtils.loadAnimation(this, R.anim.home_customization_drawer_slide_up)); } private void hideCustomizationDrawer() { if (isCustomizationDrawerVisible()) { - Animation slideDownAnimation = AnimationUtils.loadAnimation(this, R.anim.home_customization_drawer_slide_down); + Animation slideDownAnimation = AnimationUtils.loadAnimation( + this, R.anim.home_customization_drawer_slide_down); slideDownAnimation.setAnimationListener(new Animation.AnimationListener() { public void onAnimationEnd(Animation animation) { mHomeCustomizationDrawer.setVisibility(View.GONE); |