mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-01 14:55:19 +00:00
the linter does not recognise our version check
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package com.zeapo.pwdstore;
|
package com.zeapo.pwdstore;
|
||||||
|
|
||||||
import android.Manifest;
|
import android.Manifest;
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
@@ -74,10 +75,12 @@ public class PasswordStore extends AppCompatActivity {
|
|||||||
private final static int REQUEST_EXTERNAL_STORAGE = 50;
|
private final static int REQUEST_EXTERNAL_STORAGE = 50;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@SuppressLint("NewApi")
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
settings = PreferenceManager.getDefaultSharedPreferences(this.getApplicationContext());
|
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);
|
shortcutManager = getSystemService(ShortcutManager.class);
|
||||||
|
}
|
||||||
activity = this;
|
activity = this;
|
||||||
PRNGFixes.apply();
|
PRNGFixes.apply();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user