1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 11:21:29 +00:00

Removed legacy code.

This commit is contained in:
Felix Ableitner 2016-03-11 21:39:25 +01:00
parent 115a9b5727
commit 8fb1a314b5

View file

@ -318,10 +318,7 @@ public class SyncthingService extends Service implements
PRNGFixes.apply();
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);
// Make sure this is also done for existing installs. We can replace this check with
// {@link #isFirstStart()} after a while.
if (!sp.getBoolean("default_user_pw_set", false)) {
sp.edit().putBoolean("default_user_pw_set", true).apply();
if (isFirstStart()) {
char[] chars =
"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".toCharArray();
StringBuilder sb = new StringBuilder();