diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-09-22 17:34:05 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-09-22 17:34:05 -0700 |
commit | 3b90adaf353363e900a3afad0a97ab6d8fe57c3b (patch) | |
tree | a88d971c3318780977f043a978124f7fda61249a /app/src/main/java/org/traccar/manager | |
parent | 3d400c3d64a79e98bec9b1d70554e636e6ae277e (diff) | |
download | etbsa-traccar-manager-android-3b90adaf353363e900a3afad0a97ab6d8fe57c3b.tar.gz etbsa-traccar-manager-android-3b90adaf353363e900a3afad0a97ab6d8fe57c3b.tar.bz2 etbsa-traccar-manager-android-3b90adaf353363e900a3afad0a97ab6d8fe57c3b.zip |
Target Android 10
Diffstat (limited to 'app/src/main/java/org/traccar/manager')
3 files changed, 5 insertions, 4 deletions
diff --git a/app/src/main/java/org/traccar/manager/MainActivity.java b/app/src/main/java/org/traccar/manager/MainActivity.java index 719ff7c..863ac79 100644 --- a/app/src/main/java/org/traccar/manager/MainActivity.java +++ b/app/src/main/java/org/traccar/manager/MainActivity.java @@ -17,7 +17,7 @@ package org.traccar.manager; import android.os.Bundle; import android.preference.PreferenceManager; -import android.support.v7.app.AppCompatActivity; +import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { diff --git a/app/src/main/java/org/traccar/manager/MainFragment.java b/app/src/main/java/org/traccar/manager/MainFragment.java index 4642415..b970499 100644 --- a/app/src/main/java/org/traccar/manager/MainFragment.java +++ b/app/src/main/java/org/traccar/manager/MainFragment.java @@ -27,8 +27,8 @@ import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.preference.PreferenceManager; -import android.support.annotation.Nullable; -import android.support.v4.content.LocalBroadcastManager; +import androidx.annotation.Nullable; +import androidx.localbroadcastmanager.content.LocalBroadcastManager; import android.view.View; import android.webkit.JavascriptInterface; import android.webkit.MimeTypeMap; @@ -164,7 +164,6 @@ public class MainFragment extends WebViewFragment { private WebViewClient webViewClient = new WebViewClient() { - @SuppressWarnings("deprecation") @Override public WebResourceResponse shouldInterceptRequest(WebView view, String url) { Uri uri = Uri.parse(url); diff --git a/app/src/main/java/org/traccar/manager/StartFragment.java b/app/src/main/java/org/traccar/manager/StartFragment.java index ca762f7..c7d5838 100644 --- a/app/src/main/java/org/traccar/manager/StartFragment.java +++ b/app/src/main/java/org/traccar/manager/StartFragment.java @@ -15,6 +15,7 @@ */ package org.traccar.manager; +import android.annotation.SuppressLint; import android.app.AlertDialog; import android.app.Fragment; import android.content.DialogInterface; @@ -54,6 +55,7 @@ public class StartFragment extends Fragment implements View.OnClickListener { return view; } + @SuppressLint("StaticFieldLeak") @Override public void onClick(View view) { startButton.setEnabled(false); |