aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorzeapo <mohamed@zenadi.com>2017-08-09 22:38:52 +0200
committerMohamed Zenadi <zeapo@users.noreply.github.com>2017-08-10 11:10:29 +0200
commit1c9d8537f5cd227078b01985264be3808bebc431 (patch)
treef2531d8a4f94d9d0407cb8fdb17c06460b39906b /app/src
parent3daa34de904908fd04490cbd62932405d08d873c (diff)
the linter does not recognise our version check
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/PasswordStore.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
index 0af9f2cb..dd79de8b 100644
--- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
+++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
@@ -1,6 +1,7 @@
package com.zeapo.pwdstore;
import android.Manifest;
+import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
@@ -74,10 +75,12 @@ public class PasswordStore extends AppCompatActivity {
private final static int REQUEST_EXTERNAL_STORAGE = 50;
@Override
+ @SuppressLint("NewApi")
protected void onCreate(Bundle savedInstanceState) {
settings = PreferenceManager.getDefaultSharedPreferences(this.getApplicationContext());
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N_MR1)
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N_MR1) {
shortcutManager = getSystemService(ShortcutManager.class);
+ }
activity = this;
PRNGFixes.apply();