Update usage of ActivityManagerNative.

Bug: 30977067
Test: N/A
Change-Id: I46e37a09cff059d2784a819bc2651d6973fbd268
This commit is contained in:
Sudheer Shanka
2016-11-10 15:30:14 -08:00
parent 28cd8cba41
commit acb1a61f3f
12 changed files with 29 additions and 34 deletions

View File

@@ -17,7 +17,6 @@
package com.android.settings;
import android.app.ActivityManager;
import android.app.ActivityManagerNative;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;
@@ -97,7 +96,7 @@ public class BugreportPreference extends CustomDialogPreference {
private void takeBugreport(int bugreportType) {
try {
ActivityManagerNative.getDefault().requestBugReport(bugreportType);
ActivityManager.getService().requestBugReport(bugreportType);
} catch (RemoteException e) {
Log.e(TAG, "error taking bugreport (bugreportType=" + bugreportType + ")", e);
}