|
@@ -3,6 +3,7 @@ package com.example.informationkanban.dialog;
|
|
|
import android.app.Activity;
|
|
|
import android.app.AlertDialog;
|
|
|
import android.content.Context;
|
|
|
+import android.os.Handler;
|
|
|
import android.view.LayoutInflater;
|
|
|
import android.view.View;
|
|
|
import android.view.Window;
|
|
@@ -10,6 +11,7 @@ import android.view.WindowManager;
|
|
|
import android.view.inputmethod.InputMethodManager;
|
|
|
import android.widget.Button;
|
|
|
import android.widget.EditText;
|
|
|
+import android.widget.Toast;
|
|
|
|
|
|
import com.example.informationkanban.R;
|
|
|
import com.example.informationkanban.utils.AppUtil;
|
|
@@ -46,7 +48,13 @@ public class UrlConfigDialogHelper {
|
|
|
alertDialog.dismiss();
|
|
|
}
|
|
|
|
|
|
- AppUtil.restartApp(activity);
|
|
|
+ Toast.makeText(activity, "即将重新启动...", Toast.LENGTH_LONG).show();
|
|
|
+ new Handler().postDelayed(new Runnable() {
|
|
|
+ @Override
|
|
|
+ public void run() {
|
|
|
+ AppUtil.restartApp(activity);
|
|
|
+ }
|
|
|
+ }, 3000);
|
|
|
});
|
|
|
|
|
|
alertDialog = builder.create();
|