Merge "Collapse shade for buttons that launch activities" into sc-dev am: dbd8e89bff
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15000577 Change-Id: Ib1a7927b1c74088a4cc186cc99fa02da2e4c0c22
This commit is contained in:
@@ -857,6 +857,8 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene
|
|||||||
mMetricsLogger.action(MetricsEvent.ACTION_EMERGENCY_DIALER_FROM_POWER_MENU);
|
mMetricsLogger.action(MetricsEvent.ACTION_EMERGENCY_DIALER_FROM_POWER_MENU);
|
||||||
mUiEventLogger.log(GlobalActionsEvent.GA_EMERGENCY_DIALER_PRESS);
|
mUiEventLogger.log(GlobalActionsEvent.GA_EMERGENCY_DIALER_PRESS);
|
||||||
if (mTelecomManager != null) {
|
if (mTelecomManager != null) {
|
||||||
|
// Close shade so user sees the activity
|
||||||
|
mStatusBar.collapseShade();
|
||||||
Intent intent = mTelecomManager.createLaunchEmergencyDialerIntent(
|
Intent intent = mTelecomManager.createLaunchEmergencyDialerIntent(
|
||||||
null /* number */);
|
null /* number */);
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK
|
||||||
@@ -987,6 +989,8 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene
|
|||||||
Log.w(TAG, "Bugreport handler could not be launched");
|
Log.w(TAG, "Bugreport handler could not be launched");
|
||||||
mIActivityManager.requestInteractiveBugReport();
|
mIActivityManager.requestInteractiveBugReport();
|
||||||
}
|
}
|
||||||
|
// Close shade so user sees the activity
|
||||||
|
mStatusBar.collapseShade();
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1005,6 +1009,8 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene
|
|||||||
mMetricsLogger.action(MetricsEvent.ACTION_BUGREPORT_FROM_POWER_MENU_FULL);
|
mMetricsLogger.action(MetricsEvent.ACTION_BUGREPORT_FROM_POWER_MENU_FULL);
|
||||||
mUiEventLogger.log(GlobalActionsEvent.GA_BUGREPORT_LONG_PRESS);
|
mUiEventLogger.log(GlobalActionsEvent.GA_BUGREPORT_LONG_PRESS);
|
||||||
mIActivityManager.requestFullBugReport();
|
mIActivityManager.requestFullBugReport();
|
||||||
|
// Close shade so user sees the activity
|
||||||
|
mStatusBar.collapseShade();
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user