Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7664e209 authored by Christian Mehlmauer's avatar Christian Mehlmauer
Browse files

replaced deprecated setButton Methods

Change-Id: I8361377cda18ae060a53b84702a2cf9b6f3e8365
parent 45988040
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@ import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.ContentResolver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.IIntentReceiver;
@@ -1176,7 +1177,7 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
                d.setCancelable(false);
                d.setTitle("System UIDs Inconsistent");
                d.setMessage("UIDs on the system are inconsistent, you need to wipe your data partition or your device will be unstable.");
                d.setButton("I'm Feeling Lucky",
                d.setButton(DialogInterface.BUTTON_POSITIVE, "I'm Feeling Lucky",
                        mHandler.obtainMessage(IM_FEELING_LUCKY_MSG));
                mUidAlert = d;
                d.show();
+2 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.server.am;

import android.content.Context;
import android.content.DialogInterface;
import android.os.Handler;
import android.os.Message;

@@ -49,7 +50,7 @@ class AppWaitingForDebuggerDialog extends BaseErrorDialog {
        text.append(" is waiting for the debugger to attach.");

        setMessage(text.toString());
        setButton("Force Close", mHandler.obtainMessage(1, app));
        setButton(DialogInterface.BUTTON_POSITIVE, "Force Close", mHandler.obtainMessage(1, app));
        setTitle("Waiting For Debugger");
        getWindow().setTitle("Waiting For Debugger: " + app.info.processName);
    }
+3 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.server.am;

import android.content.Context;
import android.content.DialogInterface;
import android.os.Handler;
import android.os.Message;

@@ -26,7 +27,8 @@ class FactoryErrorDialog extends BaseErrorDialog {
        setCancelable(false);
        setTitle(context.getText(com.android.internal.R.string.factorytest_failed));
        setMessage(msg);
        setButton(context.getText(com.android.internal.R.string.factorytest_reboot),
        setButton(DialogInterface.BUTTON_POSITIVE,
                context.getText(com.android.internal.R.string.factorytest_reboot),
                mHandler.obtainMessage(0));
        getWindow().setTitle("Factory Error");
    }