mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-05 00:02:27 -08:00
Remove compat methods
This commit is contained in:
1 parent
9442c7ef07
commit
d3ebbba2a1
18 files changed
+35
-341
No files matched your search
@@ -24,8 +24,6 @@ import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.WindowManager;
|
||||
|
||||
import com.kunzisoft.keepass.compat.BuildCompat;
|
||||
|
||||
/**
|
||||
* Locking Hide Activity that sets FLAG_SECURE to prevent screenshots, and from
|
||||
* appearing in the recent app preview
|
||||
@@ -37,10 +35,7 @@ public abstract class LockingHideActivity extends LockingActivity {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
// Several gingerbread devices have problems with FLAG_SECURE
|
||||
int ver = BuildCompat.getSdkVersion();
|
||||
if (ver >= BuildCompat.VERSION_CODE_ICE_CREAM_SANDWICH || ver < BuildCompat.VERSION_CODE_GINGERBREAD) {
|
||||
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
|
||||
}
|
||||
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
|
||||
}
|
||||
|
||||
/* (non-Javadoc) Workaround for HTC Linkify issues
|
||||
|
||||
Reference in new issue
Block a user