diff options
author | Adam Cohen <adamcohen@google.com> | 2014-05-21 23:01:57 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-21 23:01:57 +0000 |
commit | 9fde43a2e2a0b28c9787b9ac53feae9209d7a238 (patch) | |
tree | 88020436fa1cbe4cc747b023034b821b950175b8 /src/com | |
parent | 4ef5e4d43fd395fb60e556dfc1a127b0ea716901 (diff) | |
parent | 00a019d9e5713a595e6528d985174e4dff454445 (diff) | |
download | android_packages_apps_Trebuchet-9fde43a2e2a0b28c9787b9ac53feae9209d7a238.tar.gz android_packages_apps_Trebuchet-9fde43a2e2a0b28c9787b9ac53feae9209d7a238.tar.bz2 android_packages_apps_Trebuchet-9fde43a2e2a0b28c9787b9ac53feae9209d7a238.zip |
am 00a019d9: Merge "Debugging wallpaper stuff on production device (to be reverted once built)" into ub-now-nova
* commit '00a019d9e5713a595e6528d985174e4dff454445':
Debugging wallpaper stuff on production device (to be reverted once built)
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/launcher3/Launcher.java | 4 | ||||
-rw-r--r-- | src/com/android/launcher3/Workspace.java | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 9da1fbb42..b02c3c69a 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -2490,11 +2490,15 @@ public class Launcher extends Activity */ protected void onClickAllAppsButton(View v) { if (LOGD) Log.d(TAG, "onClickAllAppsButton"); + + mWorkspace.setWallpaperDimension(); + /* if (isAllAppsVisible()) { showWorkspace(true); } else { showAllApps(true, AppsCustomizePagedView.ContentType.Applications, false); } + */ } /** diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java index b76beda27..76f0bd71f 100644 --- a/src/com/android/launcher3/Workspace.java +++ b/src/com/android/launcher3/Workspace.java @@ -460,7 +460,7 @@ public class Workspace extends SmoothPagedView mFlingThresholdVelocity = (int) (FLING_THRESHOLD_VELOCITY * mDensity); // Set the wallpaper dimensions when Launcher starts up - setWallpaperDimension(); + //setWallpaperDimension(); } private void setupLayoutTransition() { @@ -1269,7 +1269,7 @@ public class Workspace extends SmoothPagedView return mCustomContentCallbacks; } - protected void setWallpaperDimension() { + public void setWallpaperDimension() { new AsyncTask<Void, Void, Void>() { public Void doInBackground(Void ... args) { String spKey = WallpaperCropActivity.getSharedPreferencesKey(); @@ -1764,7 +1764,7 @@ public class Workspace extends SmoothPagedView // Update wallpaper dimensions if they were changed since last onResume // (we also always set the wallpaper dimensions in the constructor) if (LauncherAppState.getInstance().hasWallpaperChangedSinceLastCheck()) { - setWallpaperDimension(); + //setWallpaperDimension(); } mWallpaperIsLiveWallpaper = mWallpaperManager.getWallpaperInfo() != null; // Force the wallpaper offset steps to be set again, because another app might have changed |