Skip to content

Commit e41c17f

Browse files
committed
Released v1.1.0
1 parent 80b23b7 commit e41c17f

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ android {
1010
minSdkVersion 15
1111
targetSdkVersion 25
1212
versionCode 2
13-
versionName "1.0.1"
13+
versionName "1.1.0"
1414

1515
buildConfigField "String", "BUILD_TIME", "\"${System.currentTimeMillis()}\""
1616
buildConfigField "String", "GIT_COMMIT", "\"${gitCommit}\""

app/src/main/java/org/itxtech/daedalus/fragment/SettingsFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void onCreate(Bundle savedInstanceState) {
4141
secondaryServer.setEntries(DnsServer.getDnsServerNames(Daedalus.getInstance()));
4242
secondaryServer.setEntryValues(DnsServer.getDnsServerIds());
4343

44-
if (Build.VERSION.SDK_INT < 21) {
44+
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
4545
SwitchPreference countQueryTimes = (SwitchPreference) findPreference("settings_count_query_times");
4646
countQueryTimes.setChecked(false);
4747
countQueryTimes.setEnabled(false);
@@ -69,7 +69,7 @@ public boolean onPreferenceClick(Preference preference) {
6969
@Override
7070
public void onStart() {
7171
super.onStart();
72-
if (view != null && Build.VERSION.SDK_INT < 21) {
72+
if (view != null && Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
7373
Snackbar.make(view, R.string.notice_legacy_api, Snackbar.LENGTH_LONG)
7474
.setAction("Action", null).show();
7575
}

app/src/main/java/org/itxtech/daedalus/service/DaedalusVpnService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
package org.itxtech.daedalus.service;
22

3+
import android.annotation.TargetApi;
34
import android.app.Notification;
45
import android.app.NotificationManager;
56
import android.app.PendingIntent;
67
import android.content.Context;
78
import android.content.Intent;
89
import android.net.VpnService;
10+
import android.os.Build;
911
import android.os.ParcelFileDescriptor;
1012
import android.preference.PreferenceManager;
1113
import android.support.v7.app.NotificationCompat;
@@ -134,6 +136,7 @@ public void onDestroy() {
134136
stopThread();
135137
}
136138

139+
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
137140
private void stopThread() {
138141
try {
139142
if (this.descriptor != null) {
@@ -167,6 +170,7 @@ public void onRevoke() {
167170
stopThread();
168171
}
169172

173+
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
170174
@Override
171175
public void run() {
172176
try {

0 commit comments

Comments
 (0)