From bfb891ab9eb7c1deed89b24511cd0c54b12ca8bf Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 7 Dec 2015 13:32:11 +0100 Subject: Silence lint warnings --- main/build.gradle | 6 +++--- main/src/main/AndroidManifest.xml | 3 ++- main/src/main/java/de/blinkt/openvpn/views/SeekBarTicks.java | 5 ++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/main/build.gradle b/main/build.gradle index e7489c7f..7dfaf1a9 100644 --- a/main/build.gradle +++ b/main/build.gradle @@ -7,9 +7,9 @@ repositories { } dependencies { - compile 'com.android.support:support-annotations:23.0.1' - compile 'com.android.support:cardview-v7:23.0.1' - compile 'com.android.support:recyclerview-v7:23.0.1' + compile 'com.android.support:support-annotations:23.1.1' + compile 'com.android.support:cardview-v7:23.1.1' + compile 'com.android.support:recyclerview-v7:23.1.1' // compile 'ch.acra:acra:4.5.0' } diff --git a/main/src/main/AndroidManifest.xml b/main/src/main/AndroidManifest.xml index e9588de4..d640beb5 100644 --- a/main/src/main/AndroidManifest.xml +++ b/main/src/main/AndroidManifest.xml @@ -17,6 +17,8 @@ + + - diff --git a/main/src/main/java/de/blinkt/openvpn/views/SeekBarTicks.java b/main/src/main/java/de/blinkt/openvpn/views/SeekBarTicks.java index 82378b00..4863096d 100644 --- a/main/src/main/java/de/blinkt/openvpn/views/SeekBarTicks.java +++ b/main/src/main/java/de/blinkt/openvpn/views/SeekBarTicks.java @@ -42,10 +42,9 @@ public class SeekBarTicks extends SeekBar { TypedArray a = context.obtainStyledAttributes(attrs, new int[] { android.R.attr.secondaryProgress }, defStyle, 0); - - int tickColor = a.getColor(0, android.R.color.black); mTickPaint = new Paint(); - mTickPaint.setColor( context.getResources().getColor(tickColor)); + //noinspection deprecation + mTickPaint.setColor( context.getResources().getColor(android.R.color.black)); a.recycle(); } -- cgit v1.2.3