diff --git a/Android.mk b/Android.mk index aad3dcfb..6b61890e 100644 --- a/Android.mk +++ b/Android.mk @@ -33,5 +33,6 @@ LOCAL_AAPT_FLAGS := \ LOCAL_PACKAGE_NAME := Updater LOCAL_PRIVILEGED_MODULE := true +LOCAL_PROGUARD_FLAG_FILES := proguard.flags include $(BUILD_PACKAGE) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 07527ec2..7f511689 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -14,11 +14,12 @@ android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" - android:theme="@style/Theme.AppCompat.Light.DarkActionBar"> + android:theme="@style/AppTheme"> diff --git a/proguard.flags b/proguard.flags new file mode 100644 index 00000000..c563d9e4 --- /dev/null +++ b/proguard.flags @@ -0,0 +1,2 @@ +-keep class android.support.design.widget.** { *; } +-keep interface android.support.design.widget.** { *; } diff --git a/res/drawable/ic_download.xml b/res/drawable/ic_download.xml new file mode 100644 index 00000000..a3932dda --- /dev/null +++ b/res/drawable/ic_download.xml @@ -0,0 +1,10 @@ + + + + diff --git a/res/drawable/ic_pause.xml b/res/drawable/ic_pause.xml new file mode 100644 index 00000000..d060a4c7 --- /dev/null +++ b/res/drawable/ic_pause.xml @@ -0,0 +1,10 @@ + + + + diff --git a/res/drawable/ic_resume.xml b/res/drawable/ic_resume.xml new file mode 100644 index 00000000..078ab9d1 --- /dev/null +++ b/res/drawable/ic_resume.xml @@ -0,0 +1,10 @@ + + + + diff --git a/res/drawable/ic_system_update.xml b/res/drawable/ic_system_update.xml index 321b0c8d..0da1d2ac 100644 --- a/res/drawable/ic_system_update.xml +++ b/res/drawable/ic_system_update.xml @@ -1,11 +1,10 @@ - + android:width="24dp" + android:height="24dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + android:fillColor="#FF000000" + android:pathData="M17,1.01L7,1c-1.1,0 -2,0.9 -2,2v18c0,1.1 0.9,2 2,2h10c1.1,0 2,-0.9 2,-2L19,3c0,-1.1 -0.9,-1.99 -2,-1.99zM17,19L7,19L7,5h10v14zM16,13h-3L13,8h-2v5L8,13l4,4 4,-4z"/> diff --git a/res/layout/activity_updates.xml b/res/layout/activity_updates.xml index 23e0f0d6..31f0c326 100644 --- a/res/layout/activity_updates.xml +++ b/res/layout/activity_updates.xml @@ -1,13 +1,84 @@ - + android:layout_height="match_parent" + android:fitsSystemWindows="true"> + + + + + + + + + + + + + + + + + + + - + android:scrollbars="vertical" + app:layout_behavior="@string/appbar_scrolling_view_behavior" /> + diff --git a/res/layout/update_item_view.xml b/res/layout/update_item_view.xml index b6de496d..b3f8376e 100644 --- a/res/layout/update_item_view.xml +++ b/res/layout/update_item_view.xml @@ -1,31 +1,102 @@ - + android:layout_marginEnd="5dp" + android:layout_marginStart="5dp" + android:layout_marginTop="5dp"> -