Ver Fonte

Fix a crashing bug in timeout change

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic há 6 anos atrás
pai
commit
ab75a89e30

+ 1 - 1
app/src/main/java/com/nextcloud/talk/controllers/SettingsController.java

@@ -670,7 +670,7 @@ public class SettingsController extends BaseController {
         @Override
         @Override
         public void onChanged(String newValue) {
         public void onChanged(String newValue) {
             if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
             if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
-                SecurityUtils.createKey(newValue);
+                SecurityUtils.createKey(appPreferences.getScreenLockTimeout());
             }
             }
         }
         }
     }
     }