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

Commit c2c2e3ee authored by Robin Lee's avatar Robin Lee
Browse files

Create Vpn ManageDialog in onCreate, not onResume

Bug: 25786112
Change-Id: I3dc2ccdce4cc9b449968ab59d1e1d0ff0476ecec
parent 97b51fa5
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.vpndialogs;
import android.content.Context;
import android.content.DialogInterface;
import android.net.IConnectivityManager;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.ServiceManager;
@@ -50,8 +51,8 @@ public class ManageDialog extends AlertActivity implements
    private Handler mHandler;

    @Override
    protected void onResume() {
        super.onResume();
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        if (getCallingPackage() != null) {
            Log.e(TAG, getCallingPackage() + " cannot start this activity");
@@ -108,11 +109,11 @@ public class ManageDialog extends AlertActivity implements
    }

    @Override
    protected void onPause() {
        super.onPause();
    protected void onDestroy() {
        if (!isFinishing()) {
            finish();
        }
        super.onDestroy();
    }

    @Override