Skip to content

Commit 1eba9e3

Browse files
author
维术
committed
[Exposed-UI]: Delete Thanks Alert
1 parent bfe2b41 commit 1eba9e3

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

VirtualApp/app/src/main/java/io/virtualapp/home/HomeActivity.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import android.annotation.SuppressLint;
66
import android.content.Context;
77
import android.content.Intent;
8-
import android.content.SharedPreferences;
98
import android.graphics.Canvas;
109
import android.graphics.Color;
1110
import android.os.Bundle;
@@ -14,7 +13,6 @@
1413
import android.os.Process;
1514
import android.os.RemoteException;
1615
import android.os.SystemClock;
17-
import android.preference.PreferenceManager;
1816
import android.support.annotation.Nullable;
1917
import android.support.v7.app.AlertDialog;
2018
import android.support.v7.widget.OrientationHelper;
@@ -128,24 +126,6 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
128126
new HomePresenterImpl(this).start();
129127
VirtualCore.get().registerObserver(mPackageObserver);
130128
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);
149129
}
150130

151131
@Override

0 commit comments

Comments
 (0)