summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherStateTransitionAnimation.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2015-03-24 17:38:42 -0700
committerWinson Chung <winsonc@google.com>2015-03-24 18:02:01 -0700
commit3d9490ab9520ffe3798539ed1626463a7eb6c9e1 (patch)
treed6274e708b843370c168205c87018851655aa45f /src/com/android/launcher3/LauncherStateTransitionAnimation.java
parentd0930655e5670bb40ec70523c1c76ff86fab2538 (diff)
downloadandroid_packages_apps_Trebuchet-3d9490ab9520ffe3798539ed1626463a7eb6c9e1.tar.gz
android_packages_apps_Trebuchet-3d9490ab9520ffe3798539ed1626463a7eb6c9e1.tar.bz2
android_packages_apps_Trebuchet-3d9490ab9520ffe3798539ed1626463a7eb6c9e1.zip
Removing more code with API 21 dependencies.
Change-Id: I16c914334ce0694b84626269ae4bb5e83082c739
Diffstat (limited to 'src/com/android/launcher3/LauncherStateTransitionAnimation.java')
-rw-r--r--src/com/android/launcher3/LauncherStateTransitionAnimation.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/launcher3/LauncherStateTransitionAnimation.java b/src/com/android/launcher3/LauncherStateTransitionAnimation.java
index 4a0aaf3f4..eacf3415e 100644
--- a/src/com/android/launcher3/LauncherStateTransitionAnimation.java
+++ b/src/com/android/launcher3/LauncherStateTransitionAnimation.java
@@ -186,7 +186,8 @@ public class LauncherStateTransitionAnimation {
View allAppsButtonView) {
// Hide the real page background, and swap in the fake one
((AppsCustomizePagedView) contentView).setPageBackgroundsVisible(false);
- revealView.setBackground(mLauncher.getDrawable(R.drawable.quantum_panel_dark));
+ revealView.setBackground(
+ mLauncher.getResources().getDrawable(R.drawable.quantum_panel_dark));
}
@Override
public void onAnimationComplete(View revealView, View contentView, View allAppsButtonView) {
@@ -508,7 +509,8 @@ public class LauncherStateTransitionAnimation {
// Hide the real page background, and swap in the fake one
pagedView.stopScrolling();
pagedView.setPageBackgroundsVisible(false);
- revealView.setBackground(mLauncher.getDrawable(R.drawable.quantum_panel_dark));
+ revealView.setBackground(
+ mLauncher.getResources().getDrawable(R.drawable.quantum_panel_dark));
// Hide the side pages of the Widget tray to avoid some ugly edge cases
final View currentPage = pagedView.getPageAt(pagedView.getNextPage());