summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2016-01-06 12:47:22 -0800
committerTom Powell <zifnab@zifnab06.net>2017-03-26 16:13:55 -0700
commitc26c565acc0d8bd5485e3c6dd127023a19d77e86 (patch)
tree14583bca896a7a357b88bce42bd54a4dd71e6f5b
parent5af98ac4996f57b5e44b4b6b705c5519036840cb (diff)
downloadandroid_packages_apps_Trebuchet-c26c565acc0d8bd5485e3c6dd127023a19d77e86.zip
android_packages_apps_Trebuchet-c26c565acc0d8bd5485e3c6dd127023a19d77e86.tar.gz
android_packages_apps_Trebuchet-c26c565acc0d8bd5485e3c6dd127023a19d77e86.tar.bz2
Trebuchet: Make sure overview arrows point up when collapsed
Change-Id: If72134daeb7424b3474eb59bf4773c9a2c0d4819
-rw-r--r--src/com/android/launcher3/Launcher.java8
-rw-r--r--src/com/android/launcher3/VerticalSlidingPanel.java13
2 files changed, 21 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 0e297f4..a6e129b 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -5179,6 +5179,14 @@ public class Launcher extends Activity
AnimationDrawable frameAnimation = (AnimationDrawable) mAnimatedArrow.getBackground();
frameAnimation.start();
}
+
+ @Override
+ public void onPanelShown(View panel) {
+ mAnimatedArrow.setBackgroundResource(R.drawable.transition_arrow_reverse);
+
+ AnimationDrawable frameAnimation = (AnimationDrawable) mAnimatedArrow.getBackground();
+ frameAnimation.start();
+ }
}
}
diff --git a/src/com/android/launcher3/VerticalSlidingPanel.java b/src/com/android/launcher3/VerticalSlidingPanel.java
index 0ebbebc..88a5239 100644
--- a/src/com/android/launcher3/VerticalSlidingPanel.java
+++ b/src/com/android/launcher3/VerticalSlidingPanel.java
@@ -223,6 +223,8 @@ public class VerticalSlidingPanel extends ViewGroup {
public void onPanelExpanded(View panel);
public void onPanelAnchored(View panel);
+
+ public void onPanelShown(View panel);
}
/**
@@ -242,6 +244,9 @@ public class VerticalSlidingPanel extends ViewGroup {
@Override
public void onPanelAnchored(View panel) {
}
+ @Override
+ public void onPanelShown(View panel) {
+ }
}
public VerticalSlidingPanel(Context context) {
@@ -332,6 +337,14 @@ public class VerticalSlidingPanel extends ViewGroup {
}
}
+ @Override
+ protected void onVisibilityChanged(View changedView, int visibility) {
+ super.onVisibilityChanged(changedView, visibility);
+ if (mPanelSlideListener != null && visibility == VISIBLE) {
+ mPanelSlideListener.onPanelShown(changedView);
+ }
+ }
+
/**
* Set the color used to fade the pane covered by the sliding pane out when the pane
* will become fully covered in the expanded state.