Skip to content

Commit 414ab28

Browse files
committed
Support AppCompat v23.1.0.
1 parent 5f4f7d1 commit 414ab28

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ ext {
1919
buildToolsVersion = '23.0.1'
2020

2121
// Android dependencies.
22-
supportAppCompat = 'com.android.support:appcompat-v7:23.0.1'
22+
supportAppCompat = 'com.android.support:appcompat-v7:23.1.0'
2323
}

robototextview/src/main/java/com/devspark/robototextview/widget/RobotoSwitch.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616

1717
package com.devspark.robototextview.widget;
1818

19-
import android.annotation.TargetApi;
2019
import android.content.Context;
21-
import android.os.Build;
20+
import android.support.v7.widget.SwitchCompat;
2221
import android.util.AttributeSet;
2322
import android.widget.Switch;
2423

@@ -29,8 +28,7 @@
2928
*
3029
* @author Evgeny Shishkin
3130
*/
32-
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
33-
public class RobotoSwitch extends Switch {
31+
public class RobotoSwitch extends SwitchCompat {
3432

3533
/**
3634
* Simple constructor to use when creating a widget from code.

0 commit comments

Comments
 (0)