mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Added option to disable auto lock
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user