Loading packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java +15 −1 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ import android.provider.Settings; import android.util.AttributeSet; import android.util.DisplayMetrics; import android.util.Log; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.MotionEvent; Loading @@ -53,7 +54,6 @@ import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.BaseAdapter; import android.widget.Button; import android.widget.ImageView; import android.widget.PopupMenu; import android.widget.RelativeLayout; Loading Loading @@ -182,6 +182,15 @@ public class RecentsPanelView extends RelativeLayout } } @Override public boolean onKeyUp(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && !event.isCanceled()) { show(false, true); return true; } return super.onKeyUp(keyCode, event); } public boolean isInContentArea(int x, int y) { // use mRecentsContainer's exact bounds to determine horizontal position final int l = mRecentsContainer.getLeft(); Loading Loading @@ -220,6 +229,11 @@ public class RecentsPanelView extends RelativeLayout setVisibility(show ? View.VISIBLE : View.GONE); mChoreo.jumpTo(show); } if (show) { setFocusable(true); setFocusableInTouchMode(true); requestFocus(); } } public void onAnimationCancel(Animator animation) { Loading Loading
packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java +15 −1 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ import android.provider.Settings; import android.util.AttributeSet; import android.util.DisplayMetrics; import android.util.Log; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.MotionEvent; Loading @@ -53,7 +54,6 @@ import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.BaseAdapter; import android.widget.Button; import android.widget.ImageView; import android.widget.PopupMenu; import android.widget.RelativeLayout; Loading Loading @@ -182,6 +182,15 @@ public class RecentsPanelView extends RelativeLayout } } @Override public boolean onKeyUp(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && !event.isCanceled()) { show(false, true); return true; } return super.onKeyUp(keyCode, event); } public boolean isInContentArea(int x, int y) { // use mRecentsContainer's exact bounds to determine horizontal position final int l = mRecentsContainer.getLeft(); Loading Loading @@ -220,6 +229,11 @@ public class RecentsPanelView extends RelativeLayout setVisibility(show ? View.VISIBLE : View.GONE); mChoreo.jumpTo(show); } if (show) { setFocusable(true); setFocusableInTouchMode(true); requestFocus(); } } public void onAnimationCancel(Animator animation) { Loading