mirror of
https://github.com/MaintainTeam/Hypatia.git
synced 2025-02-28 21:38:21 +03:00
Drop minSdk from 21 to 16
This commit is contained in:
parent
0720ccbec1
commit
6eab4ebe18
2 changed files with 5 additions and 2 deletions
|
@ -4,7 +4,7 @@ android {
|
|||
compileSdkVersion 26
|
||||
defaultConfig {
|
||||
applicationId "us.spotco.malwarescanner"
|
||||
minSdkVersion 21
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 26
|
||||
versionCode 27
|
||||
versionName "2.2"
|
||||
|
|
|
@ -5,6 +5,7 @@ import android.app.Notification;
|
|||
import android.app.NotificationManager;
|
||||
import android.content.Context;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.Build;
|
||||
import android.os.Environment;
|
||||
import android.os.SystemClock;
|
||||
import android.support.v4.app.NotificationCompat;
|
||||
|
@ -54,8 +55,10 @@ class MalwareScanner extends AsyncTask<Set<File>, Object, String> {
|
|||
.setContentTitle(context.getText(R.string.lblNotificationRealtimeDetection) + " " + malwareDetect[0])
|
||||
.setContentText(malwareDetect[1])
|
||||
.setPriority(Notification.PRIORITY_MAX)
|
||||
.setVisibility(Notification.VISIBILITY_SECRET)
|
||||
.setDefaults(Notification.DEFAULT_VIBRATE);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
mBuilder.setVisibility(Notification.VISIBILITY_SECRET);
|
||||
}
|
||||
notificationManager.notify(new Random().nextInt(), mBuilder.build());
|
||||
//Log.d("Theia", result);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue