Fix issues on Android 4.4

This commit is contained in:
Mygod
2017-12-20 10:24:35 -08:00
parent a742512892
commit 0b2c9fbcfd
6 changed files with 10 additions and 4 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.github.shadowsocks">
package="com.github.shadowsocks"
android:installLocation="internalOnly">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
@@ -3,7 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
xmlns:tools="http://schemas.android.com/tools"
android:drawable="@drawable/ic_service_active"
android:drawable="@drawable/ic_service_busy"
tools:ignore="NewApi">
<target android:name="path">
<aapt:attr name="android:animation">
@@ -3,7 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
xmlns:tools="http://schemas.android.com/tools"
android:drawable="@drawable/ic_service_active"
android:drawable="@drawable/ic_service_busy"
tools:ignore="NewApi">
<target android:name="path">
<aapt:attr name="android:animation">
+1 -1
View File
@@ -75,7 +75,7 @@
android:layout_alignParentEnd="true"
android:layout_alignTop="@+id/stat"
android:layout_marginEnd="16dp"
android:layout_marginTop="-28dp"
android:layout_marginTop="@dimen/fab_margin_top"
android:elevation="6dp">
<com.github.shadowsocks.widget.ServiceButton
android:id="@+id/fab"
+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="fab_margin_top">-28dp</dimen>
</resources>
+1
View File
@@ -3,4 +3,5 @@
<dimen name="profile_item_max_width">480dp</dimen>
<dimen name="qr_code_size">250dp</dimen>
<dimen name="profile_padding">8dp</dimen>
<dimen name="fab_margin_top">-44dp</dimen>
</resources>