From 8fb1a314b5fadea8a30db93c39510de249dbb894 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 11 Mar 2016 21:39:25 +0100 Subject: [PATCH] Removed legacy code. --- .../nutomic/syncthingandroid/syncthing/SyncthingService.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java index a54817a3..808d2959 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java @@ -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();