Merge "Enable send-feedback workflow on user builds on TV" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
915b96c872
@@ -3535,16 +3535,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
}
|
||||
|
||||
private void requestBugreportForTv() {
|
||||
if ("1".equals(SystemProperties.get("ro.debuggable"))
|
||||
|| Settings.Global.getInt(mContext.getContentResolver(),
|
||||
Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0) == 1) {
|
||||
try {
|
||||
if (!ActivityManager.getService().launchBugReportHandlerApp()) {
|
||||
ActivityManager.getService().requestInteractiveBugReport();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Slog.e(TAG, "Error taking bugreport", e);
|
||||
try {
|
||||
if (!ActivityManager.getService().launchBugReportHandlerApp()) {
|
||||
ActivityManager.getService().requestInteractiveBugReport();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Slog.e(TAG, "Error taking bugreport", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user