Loading packages/CarSystemUI/src/com/android/systemui/statusbar/car/CarFacetButton.java +4 −0 Original line number Diff line number Diff line Loading @@ -118,6 +118,8 @@ public class CarFacetButton extends LinearLayout { options.setLaunchDisplayId(mContext.getDisplayId()); intent.putExtra(EXTRA_FACET_LAUNCH_PICKER, mSelected); mContext.startActivityAsUser(intent, options.toBundle(), UserHandle.CURRENT); mContext.sendBroadcastAsUser( new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS), UserHandle.CURRENT); }); if (longPressIntentString != null) { Loading @@ -128,6 +130,8 @@ public class CarFacetButton extends LinearLayout { options.setLaunchDisplayId(mContext.getDisplayId()); mContext.startActivityAsUser(longPressIntent, options.toBundle(), UserHandle.CURRENT); mContext.sendBroadcastAsUser( new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS), UserHandle.CURRENT); return true; }); } Loading packages/CarSystemUI/src/com/android/systemui/statusbar/car/CarNavigationButton.java +3 −0 Original line number Diff line number Diff line Loading @@ -95,6 +95,9 @@ public class CarNavigationButton extends com.android.keyguard.AlphaOptimizedImag try { if (mBroadcastIntent) { mContext.sendBroadcastAsUser(intent, UserHandle.CURRENT); mContext.sendBroadcastAsUser( new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS), UserHandle.CURRENT); return; } ActivityOptions options = ActivityOptions.makeBasic(); Loading Loading
packages/CarSystemUI/src/com/android/systemui/statusbar/car/CarFacetButton.java +4 −0 Original line number Diff line number Diff line Loading @@ -118,6 +118,8 @@ public class CarFacetButton extends LinearLayout { options.setLaunchDisplayId(mContext.getDisplayId()); intent.putExtra(EXTRA_FACET_LAUNCH_PICKER, mSelected); mContext.startActivityAsUser(intent, options.toBundle(), UserHandle.CURRENT); mContext.sendBroadcastAsUser( new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS), UserHandle.CURRENT); }); if (longPressIntentString != null) { Loading @@ -128,6 +130,8 @@ public class CarFacetButton extends LinearLayout { options.setLaunchDisplayId(mContext.getDisplayId()); mContext.startActivityAsUser(longPressIntent, options.toBundle(), UserHandle.CURRENT); mContext.sendBroadcastAsUser( new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS), UserHandle.CURRENT); return true; }); } Loading
packages/CarSystemUI/src/com/android/systemui/statusbar/car/CarNavigationButton.java +3 −0 Original line number Diff line number Diff line Loading @@ -95,6 +95,9 @@ public class CarNavigationButton extends com.android.keyguard.AlphaOptimizedImag try { if (mBroadcastIntent) { mContext.sendBroadcastAsUser(intent, UserHandle.CURRENT); mContext.sendBroadcastAsUser( new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS), UserHandle.CURRENT); return; } ActivityOptions options = ActivityOptions.makeBasic(); Loading