diff options
author | Jorim Jaggi <jjaggi@google.com> | 2014-07-01 23:34:41 +0200 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2014-07-03 17:24:24 +0200 |
commit | 30c305ce6283ce1380ad91ef0d221696b32d5a6b (patch) | |
tree | 9c4f996662240bd21dd796a8375e51d628060035 /packages/SystemUI/src/com/android/systemui/qs/QSTile.java | |
parent | ea9bdd7c5009802c0680d3c8d6a36ab7eb35a329 (diff) | |
download | frameworks_base-30c305ce6283ce1380ad91ef0d221696b32d5a6b.zip frameworks_base-30c305ce6283ce1380ad91ef0d221696b32d5a6b.tar.gz frameworks_base-30c305ce6283ce1380ad91ef0d221696b32d5a6b.tar.bz2 |
Implement nice motion for collapsing panel while QS open
Also remove the delay for actions which close the panel. Delaying is
no longer necessary as you still see the touch feedback when the
panel is closed.
Change-Id: I0dffae6998fc41b1590cb182667323f40be3a7d5
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/qs/QSTile.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/QSTile.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSTile.java b/packages/SystemUI/src/com/android/systemui/qs/QSTile.java index ba350e5..5901dd5 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSTile.java @@ -26,7 +26,6 @@ import android.util.Log; import android.view.View; import android.view.ViewGroup; -import com.android.systemui.R; import com.android.systemui.qs.QSTile.State; import com.android.systemui.statusbar.policy.BluetoothController; import com.android.systemui.statusbar.policy.CastController; @@ -57,7 +56,6 @@ public abstract class QSTile<TState extends State> implements Listenable { protected final Context mContext; protected final H mHandler; protected final Handler mUiHandler = new Handler(Looper.getMainLooper()); - private final int mFeedbackStartDelay; private Callback mCallback; protected final TState mState = newTileState(); @@ -71,7 +69,6 @@ public abstract class QSTile<TState extends State> implements Listenable { mHost = host; mContext = host.getContext(); mHandler = new H(host.getLooper()); - mFeedbackStartDelay = mContext.getResources().getInteger(R.integer.feedback_start_delay); } public boolean supportsDualTargets() { @@ -120,10 +117,6 @@ public abstract class QSTile<TState extends State> implements Listenable { mHandler.obtainMessage(H.USER_SWITCH, newUserId).sendToTarget(); } - protected void postAfterFeedback(Runnable runnable) { - mHandler.postDelayed(runnable, mFeedbackStartDelay); - } - // call only on tile worker looper private void handleSetCallback(Callback callback) { |