Loading packages/SystemUI/res/layout/screen_pinning_request_buttons.xml +2 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,7 @@ android:src="@drawable/screen_pinning_bg_circ" /> <ImageView android:id="@+id/screen_pinning_back_icon" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingEnd="@dimen/screen_pinning_request_nav_side_padding" Loading Loading @@ -105,6 +106,7 @@ android:src="@drawable/screen_pinning_bg_circ" /> <ImageView android:id="@+id/screen_pinning_home_icon" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingEnd="@dimen/screen_pinning_request_nav_side_padding" Loading packages/SystemUI/res/layout/screen_pinning_request_buttons_land.xml +2 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,7 @@ android:src="@drawable/screen_pinning_bg_circ" /> <ImageView android:id="@+id/screen_pinning_back_icon" android:layout_height="match_parent" android:layout_width="match_parent" android:scaleType="center" Loading Loading @@ -99,6 +100,7 @@ android:src="@drawable/screen_pinning_bg_circ" /> <ImageView android:id="@+id/screen_pinning_home_icon" android:layout_height="match_parent" android:layout_width="match_parent" android:scaleType="center" Loading packages/SystemUI/res/layout/screen_pinning_request_buttons_sea.xml +2 −0 Original line number Diff line number Diff line Loading @@ -61,6 +61,7 @@ android:src="@drawable/screen_pinning_bg_circ" /> <ImageView android:id="@+id/screen_pinning_back_icon" android:layout_height="match_parent" android:layout_width="match_parent" android:scaleType="center" Loading Loading @@ -103,6 +104,7 @@ android:src="@drawable/screen_pinning_bg_circ" /> <ImageView android:id="@+id/screen_pinning_home_icon" android:layout_height="match_parent" android:layout_width="match_parent" android:scaleType="center" Loading packages/SystemUI/src/com/android/systemui/recents/ScreenPinningRequest.java +6 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import android.view.accessibility.AccessibilityManager; import android.view.animation.DecelerateInterpolator; import android.widget.Button; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; Loading Loading @@ -255,6 +256,11 @@ public class ScreenPinningRequest implements View.OnClickListener { : R.string.screen_pinning_description_recents_invisible; } ((ImageView) mLayout.findViewById(R.id.screen_pinning_back_icon)) .setImageDrawable(navigationBarView.getBackDrawable(mContext)); ((ImageView) mLayout.findViewById(R.id.screen_pinning_home_icon)) .setImageDrawable(navigationBarView.getHomeDrawable(mContext)); ((TextView) mLayout.findViewById(R.id.screen_pinning_description)) .setText(descriptionStringResId); final int backBgVisibility = touchExplorationEnabled ? View.INVISIBLE : View.VISIBLE; Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarGestureHelper.java +8 −0 Original line number Diff line number Diff line Loading @@ -149,6 +149,10 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture } public boolean onInterceptTouchEvent(MotionEvent event) { if (mNavigationBarView.inScreenPinning()) { return false; } int action = event.getActionMasked(); switch (action) { case MotionEvent.ACTION_DOWN: { Loading Loading @@ -177,6 +181,10 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture } public boolean onTouchEvent(MotionEvent event) { if (mNavigationBarView.inScreenPinning()) { return false; } // The same down event was just sent on intercept and therefore can be ignored here boolean ignoreProxyDownEvent = event.getAction() == MotionEvent.ACTION_DOWN && mOverviewProxyService.getProxy() != null; Loading Loading
packages/SystemUI/res/layout/screen_pinning_request_buttons.xml +2 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,7 @@ android:src="@drawable/screen_pinning_bg_circ" /> <ImageView android:id="@+id/screen_pinning_back_icon" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingEnd="@dimen/screen_pinning_request_nav_side_padding" Loading Loading @@ -105,6 +106,7 @@ android:src="@drawable/screen_pinning_bg_circ" /> <ImageView android:id="@+id/screen_pinning_home_icon" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingEnd="@dimen/screen_pinning_request_nav_side_padding" Loading
packages/SystemUI/res/layout/screen_pinning_request_buttons_land.xml +2 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,7 @@ android:src="@drawable/screen_pinning_bg_circ" /> <ImageView android:id="@+id/screen_pinning_back_icon" android:layout_height="match_parent" android:layout_width="match_parent" android:scaleType="center" Loading Loading @@ -99,6 +100,7 @@ android:src="@drawable/screen_pinning_bg_circ" /> <ImageView android:id="@+id/screen_pinning_home_icon" android:layout_height="match_parent" android:layout_width="match_parent" android:scaleType="center" Loading
packages/SystemUI/res/layout/screen_pinning_request_buttons_sea.xml +2 −0 Original line number Diff line number Diff line Loading @@ -61,6 +61,7 @@ android:src="@drawable/screen_pinning_bg_circ" /> <ImageView android:id="@+id/screen_pinning_back_icon" android:layout_height="match_parent" android:layout_width="match_parent" android:scaleType="center" Loading Loading @@ -103,6 +104,7 @@ android:src="@drawable/screen_pinning_bg_circ" /> <ImageView android:id="@+id/screen_pinning_home_icon" android:layout_height="match_parent" android:layout_width="match_parent" android:scaleType="center" Loading
packages/SystemUI/src/com/android/systemui/recents/ScreenPinningRequest.java +6 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import android.view.accessibility.AccessibilityManager; import android.view.animation.DecelerateInterpolator; import android.widget.Button; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; Loading Loading @@ -255,6 +256,11 @@ public class ScreenPinningRequest implements View.OnClickListener { : R.string.screen_pinning_description_recents_invisible; } ((ImageView) mLayout.findViewById(R.id.screen_pinning_back_icon)) .setImageDrawable(navigationBarView.getBackDrawable(mContext)); ((ImageView) mLayout.findViewById(R.id.screen_pinning_home_icon)) .setImageDrawable(navigationBarView.getHomeDrawable(mContext)); ((TextView) mLayout.findViewById(R.id.screen_pinning_description)) .setText(descriptionStringResId); final int backBgVisibility = touchExplorationEnabled ? View.INVISIBLE : View.VISIBLE; Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarGestureHelper.java +8 −0 Original line number Diff line number Diff line Loading @@ -149,6 +149,10 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture } public boolean onInterceptTouchEvent(MotionEvent event) { if (mNavigationBarView.inScreenPinning()) { return false; } int action = event.getActionMasked(); switch (action) { case MotionEvent.ACTION_DOWN: { Loading Loading @@ -177,6 +181,10 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture } public boolean onTouchEvent(MotionEvent event) { if (mNavigationBarView.inScreenPinning()) { return false; } // The same down event was just sent on intercept and therefore can be ignored here boolean ignoreProxyDownEvent = event.getAction() == MotionEvent.ACTION_DOWN && mOverviewProxyService.getProxy() != null; Loading