|
5 | 5 | import android.annotation.SuppressLint; |
6 | 6 | import android.content.Context; |
7 | 7 | import android.content.Intent; |
8 | | -import android.content.SharedPreferences; |
9 | 8 | import android.graphics.Canvas; |
10 | 9 | import android.graphics.Color; |
11 | 10 | import android.os.Bundle; |
|
14 | 13 | import android.os.Process; |
15 | 14 | import android.os.RemoteException; |
16 | 15 | import android.os.SystemClock; |
17 | | -import android.preference.PreferenceManager; |
18 | 16 | import android.support.annotation.Nullable; |
19 | 17 | import android.support.v7.app.AlertDialog; |
20 | 18 | import android.support.v7.widget.OrientationHelper; |
@@ -128,24 +126,6 @@ protected void onCreate(@Nullable Bundle savedInstanceState) { |
128 | 126 | new HomePresenterImpl(this).start(); |
129 | 127 | VirtualCore.get().registerObserver(mPackageObserver); |
130 | 128 | alertForMeizu(); |
131 | | - mUiHandler.postDelayed(() -> { |
132 | | - final String alertForIcon = "showThanks"; |
133 | | - SharedPreferences defaultSp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); |
134 | | - boolean show = defaultSp.getBoolean(alertForIcon, true); |
135 | | - defaultSp.edit().putBoolean(alertForIcon, false).apply(); |
136 | | - if (show) { |
137 | | - AlertDialog alertDialog = new AlertDialog.Builder(this, R.style.Theme_AppCompat_DayNight_Dialog_Alert) |
138 | | - .setTitle(R.string.thanks_dialog_title) |
139 | | - .setMessage(R.string.thanks_dialog_content) |
140 | | - .setPositiveButton(R.string.about_icon_yes, null) |
141 | | - .create(); |
142 | | - try { |
143 | | - alertDialog.show(); |
144 | | - } catch (Throwable ignored) { |
145 | | - // BadTokenException. |
146 | | - } |
147 | | - } |
148 | | - }, 5000); |
149 | 129 | } |
150 | 130 |
|
151 | 131 | @Override |
|
0 commit comments