From b76b7517ee833a123d1bdf698a6f8c99886c0217 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 5 Dec 2014 10:58:40 +0100 Subject: Fix a few lint warnings --HG-- extra : rebase_source : 2252917f882eccb6db2fc3286ca01606f5b5ff86 --- main/src/main/AndroidManifest.xml | 5 ++++- main/src/main/java/de/blinkt/openvpn/OnBootReceiver.java | 2 +- .../main/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java | 4 ---- main/src/main/res/layout-v21/connection_fab.xml | 5 +++-- main/src/main/res/layout-v21/profile_list_fabs.xml | 8 ++++++-- main/src/main/res/values/dimens.xml | 2 -- 6 files changed, 14 insertions(+), 12 deletions(-) (limited to 'main/src') diff --git a/main/src/main/AndroidManifest.xml b/main/src/main/AndroidManifest.xml index e226bdfc..dbc9c243 100644 --- a/main/src/main/AndroidManifest.xml +++ b/main/src/main/AndroidManifest.xml @@ -59,6 +59,7 @@ @@ -82,6 +83,8 @@ + + @@ -108,7 +111,7 @@ - + diff --git a/main/src/main/java/de/blinkt/openvpn/OnBootReceiver.java b/main/src/main/java/de/blinkt/openvpn/OnBootReceiver.java index bc8385a2..bc73bb26 100644 --- a/main/src/main/java/de/blinkt/openvpn/OnBootReceiver.java +++ b/main/src/main/java/de/blinkt/openvpn/OnBootReceiver.java @@ -19,7 +19,7 @@ public class OnBootReceiver extends BroadcastReceiver { final String action = intent.getAction(); - if(Intent.ACTION_BOOT_COMPLETED.equals(action)) { + if(Intent.ACTION_BOOT_COMPLETED.equals(action) || Intent.ACTION_MY_PACKAGE_REPLACED.equals(action)) { VpnProfile bootProfile = ProfileManager.getLastConnectedProfile(context, true); if(bootProfile != null) { launchVPN(bootProfile, context); diff --git a/main/src/main/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java b/main/src/main/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java index 6d11c7d7..4474c669 100644 --- a/main/src/main/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java +++ b/main/src/main/java/de/blinkt/openvpn/fragments/ConnectionsAdapter.java @@ -14,14 +14,12 @@ import android.text.TextWatcher; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; -import android.widget.Button; import android.widget.CheckBox; import android.widget.CompoundButton; import android.widget.EditText; import android.widget.ImageButton; import android.widget.RadioGroup; import android.widget.Switch; -import android.widget.TextView; import java.util.Arrays; @@ -48,7 +46,6 @@ public class ConnectionsAdapter extends RecyclerView.Adapter - + + android:src="@drawable/ic_archive_grey600_24dp" + android:contentDescription="@string/import_config" /> 56dp 16dp 16dp - 1 - \ No newline at end of file -- cgit v1.2.3