mirror of
https://github.com/KokaKiwi/BarInsta
synced 2026-03-14 16:31:36 +00:00
DM sync service
This commit is contained in:
parent
605f15ee3a
commit
df5a96e035
39 changed files with 2076 additions and 600 deletions
10
app/src/main/res/drawable/ic_round_mode_comment_24.xml
Normal file
10
app/src/main/res/drawable/ic_round_mode_comment_24.xml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M22,4c0,-1.1 -0.9,-2 -2,-2H4c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h14l4,4V4z"/>
|
||||
</vector>
|
||||
33
app/src/main/res/layout/pref_auto_refresh_dm_freq.xml
Normal file
33
app/src/main/res/layout/pref_auto_refresh_dm_freq.xml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?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="wrap_content"
|
||||
android:animateLayoutChanges="true"
|
||||
android:clickable="false"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="15dp"
|
||||
android:paddingEnd="15dp">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/start_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/auto_refresh_every"
|
||||
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatEditText
|
||||
android:id="@+id/freq_num"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginEnd="2dp"
|
||||
android:inputType="number"
|
||||
android:textAlignment="center" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatSpinner
|
||||
android:id="@+id/freq_unit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
||||
|
|
@ -78,8 +78,29 @@
|
|||
android:name="awais.instagrabber.fragments.settings.SettingsPreferencesFragment"
|
||||
android:label="@string/action_settings">
|
||||
<action
|
||||
android:id="@+id/action_settingsPreferencesFragment_to_themePreferencesFragment"
|
||||
android:id="@+id/action_settings_to_theme"
|
||||
app:destination="@id/themePreferencesFragment" />
|
||||
<action
|
||||
android:id="@+id/action_settings_to_locale"
|
||||
app:destination="@id/localePreferencesFragment" />
|
||||
<action
|
||||
android:id="@+id/action_settings_to_general"
|
||||
app:destination="@id/generalPreferencesFragment" />
|
||||
<action
|
||||
android:id="@+id/action_settings_to_downloads"
|
||||
app:destination="@id/downloadsPreferencesFragment" />
|
||||
<action
|
||||
android:id="@+id/action_settings_to_dm"
|
||||
app:destination="@id/DMPreferencesFragment" />
|
||||
<action
|
||||
android:id="@+id/action_settings_to_stories"
|
||||
app:destination="@id/storiesPreferencesFragment" />
|
||||
<action
|
||||
android:id="@+id/action_settings_to_notifications"
|
||||
app:destination="@id/notificationsPreferencesFragment" />
|
||||
<action
|
||||
android:id="@+id/action_settings_to_post"
|
||||
app:destination="@id/postPreferencesFragment" />
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/aboutFragment"
|
||||
|
|
@ -97,4 +118,32 @@
|
|||
android:id="@+id/backupPreferencesFragment"
|
||||
android:name="awais.instagrabber.fragments.settings.BackupPreferencesFragment"
|
||||
android:label="@string/backup_and_restore" />
|
||||
<fragment
|
||||
android:id="@+id/localePreferencesFragment"
|
||||
android:name="awais.instagrabber.fragments.settings.LocalePreferencesFragment"
|
||||
android:label="@string/pref_category_locale" />
|
||||
<fragment
|
||||
android:id="@+id/generalPreferencesFragment"
|
||||
android:name="awais.instagrabber.fragments.settings.GeneralPreferencesFragment"
|
||||
android:label="@string/pref_category_general" />
|
||||
<fragment
|
||||
android:id="@+id/downloadsPreferencesFragment"
|
||||
android:name="awais.instagrabber.fragments.settings.DownloadsPreferencesFragment"
|
||||
android:label="@string/pref_category_downloads" />
|
||||
<fragment
|
||||
android:id="@+id/DMPreferencesFragment"
|
||||
android:name="awais.instagrabber.fragments.settings.DMPreferencesFragment"
|
||||
android:label="@string/pref_category_dm" />
|
||||
<fragment
|
||||
android:id="@+id/storiesPreferencesFragment"
|
||||
android:name="awais.instagrabber.fragments.settings.StoriesPreferencesFragment"
|
||||
android:label="@string/pref_category_stories" />
|
||||
<fragment
|
||||
android:id="@+id/notificationsPreferencesFragment"
|
||||
android:name="awais.instagrabber.fragments.settings.NotificationsPreferencesFragment"
|
||||
android:label="@string/pref_category_notifications" />
|
||||
<fragment
|
||||
android:id="@+id/postPreferencesFragment"
|
||||
android:name="awais.instagrabber.fragments.settings.PostPreferencesFragment"
|
||||
android:label="PostPreferencesFragment" />
|
||||
</navigation>
|
||||
|
|
@ -124,4 +124,12 @@
|
|||
<item>@style/AppTheme.Dark.Black</item>
|
||||
<item>@style/AppTheme.Dark.MaterialDark</item>
|
||||
</string-array>
|
||||
<string-array name="dm_auto_refresh_freq_units">
|
||||
<item>secs</item>
|
||||
<item>mins</item>
|
||||
</string-array>
|
||||
<string-array name="dm_auto_refresh_freq_unit_labels">
|
||||
<item>@string/secs</item>
|
||||
<item>@string/mins</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -474,4 +474,14 @@
|
|||
<string name="accept">Accept</string>
|
||||
<string name="you">You</string>
|
||||
<string name="no_pending_requests">No pending requests</string>
|
||||
<string name="checking_for_new_messages">Checking for new messages</string>
|
||||
<string name="pref_category_stories">Stories</string>
|
||||
<string name="pref_category_dm">DM</string>
|
||||
<string name="pref_category_notifications">Notifications</string>
|
||||
<string name="pref_category_post">Post</string>
|
||||
<string name="enable_dm_notifications">Enable DM notifications</string>
|
||||
<string name="enable_dm_auto_refesh">Auto refresh messages</string>
|
||||
<string name="auto_refresh_every">Auto refresh every</string>
|
||||
<string name="secs">secs</string>
|
||||
<string name="mins">mins</string>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue