Adds option to hide media previews if reduced data usage is desired Closes #56.
This commit is contained in:
parent
3a4ef00dab
commit
3f54ead962
12 changed files with 368 additions and 186 deletions
9
app/src/main/res/drawable/ic_photo_24dp.xml
Normal file
9
app/src/main/res/drawable/ic_photo_24dp.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:pathData="M21,19V5c0,-1.1 -0.9,-2 -2,-2H5c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2zM8.5,13.5l2.5,3.01L14.5,12l4.5,6H5l3.5,-4.5z"
|
||||
android:fillColor="#FFFFFF"/>
|
||||
</vector>
|
9
app/src/main/res/drawable/ic_videocam_24dp.xml
Normal file
9
app/src/main/res/drawable/ic_videocam_24dp.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:pathData="M17,10.5V7c0,-0.55 -0.45,-1 -1,-1H4c-0.55,0 -1,0.45 -1,1v10c0,0.55 0.45,1 1,1h12c0.55,0 1,-0.45 1,-1v-3.5l4,4v-11l-4,4z"
|
||||
android:fillColor="#FFFFFF"/>
|
||||
</vector>
|
|
@ -233,7 +233,15 @@
|
|||
android:textAlignment="center"
|
||||
android:text="@string/status_sensitive_media_directions"
|
||||
android:textColor="@android:color/white" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/status_media_label"
|
||||
android:visibility="gone" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
|
|
@ -105,8 +105,6 @@
|
|||
<string name="send_status_link_to">Share toot URL to…</string>
|
||||
<string name="send_status_content_to">Share toot to…</string>
|
||||
|
||||
<string name="search">Search accounts…</string>
|
||||
|
||||
<string name="confirmation_send">Toot!</string>
|
||||
<string name="confirmation_reported">Sent!</string>
|
||||
<string name="confirmation_unblocked">User unblocked</string>
|
||||
|
@ -168,6 +166,7 @@
|
|||
<string name="pref_title_status_tabs">Tabs</string>
|
||||
<string name="pref_title_show_boosts">Show boosts</string>
|
||||
<string name="pref_title_show_replies">Show replies</string>
|
||||
<string name="pref_title_show_media_preview">Show media previews</string>
|
||||
|
||||
<string name="notification_mention_format">%s mentioned you</string>
|
||||
<string name="notification_summary_large">%1$s, %2$s, %3$s and %4$d others</string>
|
||||
|
@ -191,6 +190,8 @@
|
|||
|
||||
<string name="status_share_content">Share content of toot</string>
|
||||
<string name="status_share_link">Share link to toot</string>
|
||||
<string name="status_media_images">Images</string>
|
||||
<string name="status_media_video">Video</string>
|
||||
|
||||
<string name="state_follow_requested">Follow requested</string>
|
||||
</resources>
|
||||
|
|
|
@ -14,6 +14,11 @@
|
|||
android:title="@string/pref_title_hide_follow_button"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<CheckBoxPreference
|
||||
android:key="mediaPreviewEnabled"
|
||||
android:title="@string/pref_title_show_media_preview"
|
||||
android:defaultValue="true" />
|
||||
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="@string/pref_title_browser_settings">
|
||||
<CheckBoxPreference
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue