mirror of
https://github.com/oxen-io/session-android.git
synced 2025-03-01 17:57:24 +00:00
Merge pull request #1020 from lxgr/fix-screensec
Use the "screen security" preference for the conversation list
This commit is contained in:
commit
003095b08c
@ -280,7 +280,7 @@ public class ConversationListActivity extends PassphraseRequiredSherlockFragment
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void initializeResources() {
|
private void initializeResources() {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB && TextSecurePreferences.isScreenSecurityEnabled(this)) {
|
||||||
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,
|
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,
|
||||||
WindowManager.LayoutParams.FLAG_SECURE);
|
WindowManager.LayoutParams.FLAG_SECURE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user