Added option to disable auto lock

This commit is contained in:
M66B
2021-10-16 07:50:13 +02:00
parent 4878d97344
commit a0a97a69ba
8 changed files with 52 additions and 3 deletions

View File

@@ -701,7 +701,10 @@ public class ApplicationEx extends Application
public void onReceive(Context context, Intent intent) {
Log.i("Received " + intent);
Log.logExtras(intent);
Helper.clearAuthentication(ApplicationEx.this);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean autolock = prefs.getBoolean("autolock", true);
if (autolock)
Helper.clearAuthentication(ApplicationEx.this);
}
};