Skip to content

Commit

Permalink
Released v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PeratX committed Apr 10, 2017
1 parent 80b23b7 commit e41c17f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
minSdkVersion 15
targetSdkVersion 25
versionCode 2
versionName "1.0.1"
versionName "1.1.0"

buildConfigField "String", "BUILD_TIME", "\"${System.currentTimeMillis()}\""
buildConfigField "String", "GIT_COMMIT", "\"${gitCommit}\""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void onCreate(Bundle savedInstanceState) {
secondaryServer.setEntries(DnsServer.getDnsServerNames(Daedalus.getInstance()));
secondaryServer.setEntryValues(DnsServer.getDnsServerIds());

if (Build.VERSION.SDK_INT < 21) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
SwitchPreference countQueryTimes = (SwitchPreference) findPreference("settings_count_query_times");
countQueryTimes.setChecked(false);
countQueryTimes.setEnabled(false);
Expand Down Expand Up @@ -69,7 +69,7 @@ public boolean onPreferenceClick(Preference preference) {
@Override
public void onStart() {
super.onStart();
if (view != null && Build.VERSION.SDK_INT < 21) {
if (view != null && Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
Snackbar.make(view, R.string.notice_legacy_api, Snackbar.LENGTH_LONG)
.setAction("Action", null).show();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package org.itxtech.daedalus.service;

import android.annotation.TargetApi;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.net.VpnService;
import android.os.Build;
import android.os.ParcelFileDescriptor;
import android.preference.PreferenceManager;
import android.support.v7.app.NotificationCompat;
Expand Down Expand Up @@ -134,6 +136,7 @@ public void onDestroy() {
stopThread();
}

@TargetApi(Build.VERSION_CODES.LOLLIPOP)
private void stopThread() {
try {
if (this.descriptor != null) {
Expand Down Expand Up @@ -167,6 +170,7 @@ public void onRevoke() {
stopThread();
}

@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void run() {
try {
Expand Down

0 comments on commit e41c17f

Please sign in to comment.