Skip to content

Commit d7316c7

Browse files
committed
Lint cleanup
1 parent 9254042 commit d7316c7

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ android {
1212
targetSdkVersion target_sdk
1313
versionCode version_code
1414
versionName version_name
15+
vectorDrawables.useSupportLibrary true
1516
}
1617
buildTypes {
1718
release {

app/src/main/res/layout/activity_main.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
xmlns:tools="http://schemas.android.com/tools"
44
android:layout_width="match_parent"
55
android:layout_height="match_parent"
6-
tools:context=".MainActivity">
6+
tools:context=".MainActivity"
7+
tools:ignore="HardcodedText">
78

89
<LinearLayout
910
android:layout_width="match_parent"

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<resources>
2-
<string name="app_name">HmsPickerView</string>
2+
<string name="app_name" translatable="false">HmsPickerView</string>
33
</resources>

library/src/main/java/xyz/aprildown/hmspickerview/HmsPickerView.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class HmsPickerView(
7474
private val hasValidInput: Boolean
7575
get() = inputPointer != -1
7676

77-
private var listener: HmsPickerView.Listener? = null
77+
private var listener: Listener? = null
7878

7979
init {
8080
val bf = BidiFormatter.getInstance(false /* rtlContext */)
@@ -321,7 +321,7 @@ class HmsPickerView(
321321
/**
322322
* Set a listener to listen if the [HmsPickerView] has or loses a valid input.
323323
*/
324-
fun setListener(l: HmsPickerView.Listener) {
324+
fun setListener(l: Listener) {
325325
listener = l
326326
}
327327

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<View xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
34
android:id="@+id/timer_setup_divider"
45
android:layout_width="match_parent"
56
android:layout_height="1dp"
67
android:layout_marginBottom="8dp"
78
android:background="@android:color/black"
89
android:importantForAccessibility="no"
9-
android:theme="@style/Hpv.ThemeOverlay.Control.Accent" />
10+
android:theme="@style/Hpv.ThemeOverlay.Control.Accent"
11+
tools:ignore="Overdraw" />

library/src/main/res/values/styles.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33

4-
<style name="Hpv" />
5-
64
<style name="Hpv.ThemeOverlay.Control.Accent" parent="ThemeOverlay.AppCompat">
75
<!-- Attributes from android.support.v7.appcompat -->
86
<item name="colorControlActivated">?attr/colorAccent</item>

0 commit comments

Comments
 (0)