Update build tools and support libs

This commit is contained in:
Marvin W 2017-04-27 01:03:41 +02:00
parent d499c4fe7c
commit e0dd1c6cbb
No known key found for this signature in database
GPG Key ID: 072E9235DB996F2A
4 changed files with 8 additions and 4 deletions

View File

@ -19,7 +19,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.android.tools.build:gradle:2.3.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
}
}

View File

@ -45,8 +45,8 @@ android {
}
dependencies {
compile 'com.android.support:support-v4:25.1.0'
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.takisoft.fix:preference-v7:25.1.0.2'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.takisoft.fix:preference-v7:25.3.1.0'
}

View File

@ -16,6 +16,7 @@
package org.microg.tools.ui;
import android.annotation.SuppressLint;
import android.content.Context;
import android.support.v4.content.res.TypedArrayUtils;
import android.support.v7.preference.CheckBoxPreference;
@ -32,6 +33,7 @@ public class RadioButtonPreference extends CheckBoxPreference {
setWidgetLayoutResource(R.layout.preference_widget_radiobutton);
}
@SuppressLint("RestrictedApi")
public RadioButtonPreference(Context context, AttributeSet attrs) {
this(context, attrs, TypedArrayUtils.getAttr(context, R.attr.checkBoxPreferenceStyle,
android.R.attr.checkBoxPreferenceStyle));

View File

@ -17,10 +17,12 @@
package org.microg.tools.ui;
import android.annotation.SuppressLint;
import android.content.Context;
import android.support.v7.widget.SwitchCompat;
import android.util.AttributeSet;
@SuppressLint("NewApi")
public class ToggleSwitch extends SwitchCompat {
private ToggleSwitch.OnBeforeCheckedChangeListener mOnBeforeListener;