diff options
author | Adam Cohen <adamcohen@google.com> | 2014-05-21 23:01:58 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-21 23:01:58 +0000 |
commit | c2cf4d1cdd06f98288eb2f53d0c06477ce17606d (patch) | |
tree | 83c6c404c88411815f5e6c1e482d27a75924e3d6 | |
parent | 9fde43a2e2a0b28c9787b9ac53feae9209d7a238 (diff) | |
parent | 73859adf80c94a377508a1d9ea8b6fa45a19f80f (diff) | |
download | android_packages_apps_Trebuchet-c2cf4d1cdd06f98288eb2f53d0c06477ce17606d.tar.gz android_packages_apps_Trebuchet-c2cf4d1cdd06f98288eb2f53d0c06477ce17606d.tar.bz2 android_packages_apps_Trebuchet-c2cf4d1cdd06f98288eb2f53d0c06477ce17606d.zip |
am 73859adf: Merge "Revert "Debugging wallpaper stuff on production device (to be reverted once built)"" into ub-now-nova
* commit '73859adf80c94a377508a1d9ea8b6fa45a19f80f':
Revert "Debugging wallpaper stuff on production device (to be reverted once built)"
-rw-r--r-- | src/com/android/launcher3/Launcher.java | 4 | ||||
-rw-r--r-- | src/com/android/launcher3/Workspace.java | 6 |
2 files changed, 3 insertions, 7 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index b02c3c69a..9da1fbb42 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -2490,15 +2490,11 @@ 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 76f0bd71f..b76beda27 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; } - public void setWallpaperDimension() { + protected 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 |