Fix lint issues, reduce min sdk version

This commit is contained in:
Marvin W 2016-11-13 16:15:18 +01:00
parent c574c62e6d
commit 888db749e7
No known key found for this signature in database
GPG Key ID: 072E9235DB996F2A
6 changed files with 9 additions and 14 deletions

View File

@ -31,6 +31,10 @@ allprojects {
def androidCompileSdk() { return 24 }
def androidTargetSdk() { return 24 }
def androidMinSdk() { return 7 }
subprojects {
repositories {
jcenter()

View File

@ -31,6 +31,8 @@ android {
defaultConfig {
versionName getMyVersionName()
minSdkVersion androidMinSdk()
targetSdkVersion androidTargetSdk()
}
compileOptions {

View File

@ -15,10 +15,4 @@
~ limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.microg.tools.ui">
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="23" />
</manifest>
<manifest package="org.microg.tools.ui" />

View File

@ -262,9 +262,4 @@ public class SwitchBar extends LinearLayout implements CompoundButton.OnCheckedC
requestLayout();
}
@Override
public CharSequence getAccessibilityClassName() {
return Switch.class.getName();
}
}

View File

@ -41,6 +41,7 @@
android:layout_marginLeft="72dp"
android:layout_marginRight="16dp"
android:layout_marginStart="72dp"
android:gravity="start"
android:textAlignment="viewStart"
android:textColor="?android:attr/textColorPrimaryInverse"
android:theme="@style/TextAppearance.AppCompat.Title.Inverse"/>

View File

@ -23,14 +23,13 @@
android:id="@+id/switch_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_gravity="start|center_vertical"
android:layout_marginLeft="72dp"
android:layout_marginStart="72dp"
android:layout_weight="1"
android:ellipsize="end"
android:maxLines="2"
android:text="@string/v7_preference_on"
android:textAlignment="viewStart"
android:textColor="?android:attr/textColorPrimaryInverse"
android:theme="@style/TextAppearance.AppCompat.Title.Inverse"/>