Do not show dialog if correct port
Этот коммит содержится в:
@@ -134,11 +134,13 @@ public class MainActivity extends PreferenceActivity implements OnSharedPreferen
|
||||
String KEY_SHOWN_PORT_DIALOG = "portDialogHasBeenShown";
|
||||
|
||||
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
if (!preferences.getString(KEY_PORT, "5055").equals("5055")) {
|
||||
if (!firstLaunch) {
|
||||
if (!preferences.contains(KEY_SHOWN_PORT_DIALOG)) {
|
||||
showDialog(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
preferences.edit().putBoolean(KEY_SHOWN_PORT_DIALOG, true).commit();
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user