Fix a crashing bug in timeout change

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2019-02-15 11:21:52 +01:00
parent 130050b092
commit ab75a89e30

View File

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