mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-30 05:47:57 +01:00
Option to auto check for extension updates (#2680)
* Option to auto check for extension updates * Addressing comments * Added foreground check for extensions * Added Extension Preference widget
This commit is contained in:
9
app/src/main/res/drawable/round_textview_background.xml
Normal file
9
app/src/main/res/drawable/round_textview_background.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="13dp"/>
|
||||
<size
|
||||
android:height="25dp"
|
||||
android:width="25dp" />
|
||||
<solid android:color="@color/material_red_900"/>
|
||||
</shape>
|
||||
17
app/src/main/res/layout/preference_update_text.xml
Normal file
17
app/src/main/res/layout/preference_update_text.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/textView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption"
|
||||
android:background="@drawable/round_textview_background"
|
||||
android:textColor="#FFFFFF"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:textStyle="bold"
|
||||
tools:text="3"
|
||||
android:layout_marginStart="12dp"
|
||||
android:paddingStart="3dp"
|
||||
android:paddingEnd="3dp"/>
|
||||
@@ -16,4 +16,10 @@
|
||||
app:iconTint="?attr/colorOnPrimary"
|
||||
app:showAsAction="ifRoom" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_auto_check"
|
||||
android:title="@string/action_auto_check_extensions"
|
||||
android:checkable="true"
|
||||
app:showAsAction="never"/>
|
||||
|
||||
</menu>
|
||||
|
||||
@@ -211,6 +211,7 @@
|
||||
<string name="ext_version_info">Version: %1$s</string>
|
||||
<string name="ext_language_info">Language: %1$s</string>
|
||||
<string name="ext_empty_preferences">No preferences to edit for this extension</string>
|
||||
<string name="action_auto_check_extensions">Auto-check for updates</string>
|
||||
|
||||
<!-- Reader section -->
|
||||
<string name="pref_fullscreen">Fullscreen</string>
|
||||
@@ -566,6 +567,12 @@
|
||||
<string name="update_check_notification_download_error">Download error</string>
|
||||
<string name="update_check_notification_update_available">Update available</string>
|
||||
|
||||
<!--Extension Updates Notifications-->
|
||||
<plurals name="update_check_notification_ext_updates">
|
||||
<item quantity="one">Extension update available</item>
|
||||
<item quantity="other">%d extension updates available</item>
|
||||
</plurals>
|
||||
|
||||
<!--Content Description-->
|
||||
<string name="description_backdrop">Backdrop image of manga</string>
|
||||
<string name="description_cover">Cover of manga</string>
|
||||
@@ -594,5 +601,6 @@
|
||||
<string name="channel_library">Library</string>
|
||||
<string name="channel_downloader">Downloader</string>
|
||||
<string name="channel_new_chapters">Chapter updates</string>
|
||||
<string name="channel_ext_updates">Extension Updates</string>
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user