mirror of
https://github.com/KokaKiwi/BarInsta
synced 2026-03-05 20:11:36 +00:00
Add update checker back, with updated handling. Check description.
FlavorTown will check if current app was installed from F-droid and not show the update dialog if true. You can now skip an update. You can now force check for an update by clicking More -> Version (even if you set to skip the update).
This commit is contained in:
parent
00800590ba
commit
c9d342471b
10 changed files with 204 additions and 50 deletions
20
app/src/main/res/layout/dialog_update.xml
Normal file
20
app/src/main/res/layout/dialog_update.xml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/update_notice"
|
||||
android:textAppearance="?attr/textAppearanceBody1" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/skip_update"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/skip_update_checkbox" />
|
||||
|
||||
</LinearLayout>
|
||||
5
app/src/main/res/layout/item_pref_divider.xml
Normal file
5
app/src/main/res/layout/item_pref_divider.xml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<View xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@drawable/preference_list_divider_material" />
|
||||
Loading…
Add table
Add a link
Reference in a new issue