aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Schneppe <christian.schneppe@pix-art.de>2019-11-14 21:37:20 +0100
committerChristian Schneppe <christian.schneppe@pix-art.de>2019-11-15 17:14:10 +0100
commit6c083786f1fe49b9052c9e8712c7e859f0f1ad49 (patch)
tree1b8580f19f2dca4b2bfb05d6a70ca2c4979be382 /src
parent8319822427169a94bad8fc06f6889ed3b53b06b5 (diff)
small UI fixes in SetSettingsActivity
Diffstat (limited to 'src')
-rw-r--r--src/main/java/de/pixart/messenger/utils/FirstStartManager.java1
-rw-r--r--src/main/res/drawable-hdpi/ic_help_circle_outline_white_24dp.pngbin0 -> 1297 bytes
-rw-r--r--src/main/res/drawable-mdpi/ic_help_circle_outline_white_24dp.pngbin0 -> 704 bytes
-rw-r--r--src/main/res/drawable-xhdpi/ic_help_circle_outline_white_24dp.pngbin0 -> 1679 bytes
-rw-r--r--src/main/res/drawable-xxhdpi/ic_help_circle_outline_white_24dp.pngbin0 -> 3315 bytes
-rw-r--r--src/main/res/drawable-xxxhdpi/ic_help_circle_outline_white_24dp.pngbin0 -> 4689 bytes
-rw-r--r--src/main/res/layout/activity_set_settings.xml14
-rw-r--r--src/main/res/values/attrs.xml1
-rw-r--r--src/main/res/values/themes.xml2
9 files changed, 10 insertions, 8 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/FirstStartManager.java b/src/main/java/de/pixart/messenger/utils/FirstStartManager.java
index 755b4a265..90e6cf0c6 100644
--- a/src/main/java/de/pixart/messenger/utils/FirstStartManager.java
+++ b/src/main/java/de/pixart/messenger/utils/FirstStartManager.java
@@ -15,7 +15,6 @@ public class FirstStartManager {
public FirstStartManager(Context context) {
this.context = context;
pref = this.context.getSharedPreferences(PREF_NAME, MODE_PRIVATE);
- editor = pref.edit();
}
public void setFirstTimeLaunch(boolean isFirstTime) {
diff --git a/src/main/res/drawable-hdpi/ic_help_circle_outline_white_24dp.png b/src/main/res/drawable-hdpi/ic_help_circle_outline_white_24dp.png
new file mode 100644
index 000000000..631c6e60a
--- /dev/null
+++ b/src/main/res/drawable-hdpi/ic_help_circle_outline_white_24dp.png
Binary files differ
diff --git a/src/main/res/drawable-mdpi/ic_help_circle_outline_white_24dp.png b/src/main/res/drawable-mdpi/ic_help_circle_outline_white_24dp.png
new file mode 100644
index 000000000..2b14e173b
--- /dev/null
+++ b/src/main/res/drawable-mdpi/ic_help_circle_outline_white_24dp.png
Binary files differ
diff --git a/src/main/res/drawable-xhdpi/ic_help_circle_outline_white_24dp.png b/src/main/res/drawable-xhdpi/ic_help_circle_outline_white_24dp.png
new file mode 100644
index 000000000..e862a8b4c
--- /dev/null
+++ b/src/main/res/drawable-xhdpi/ic_help_circle_outline_white_24dp.png
Binary files differ
diff --git a/src/main/res/drawable-xxhdpi/ic_help_circle_outline_white_24dp.png b/src/main/res/drawable-xxhdpi/ic_help_circle_outline_white_24dp.png
new file mode 100644
index 000000000..7636a5460
--- /dev/null
+++ b/src/main/res/drawable-xxhdpi/ic_help_circle_outline_white_24dp.png
Binary files differ
diff --git a/src/main/res/drawable-xxxhdpi/ic_help_circle_outline_white_24dp.png b/src/main/res/drawable-xxxhdpi/ic_help_circle_outline_white_24dp.png
new file mode 100644
index 000000000..2ade92c45
--- /dev/null
+++ b/src/main/res/drawable-xxxhdpi/ic_help_circle_outline_white_24dp.png
Binary files differ
diff --git a/src/main/res/layout/activity_set_settings.xml b/src/main/res/layout/activity_set_settings.xml
index 7197fb19a..99d596e0a 100644
--- a/src/main/res/layout/activity_set_settings.xml
+++ b/src/main/res/layout/activity_set_settings.xml
@@ -61,7 +61,7 @@
android:background="?attr/selectableItemBackgroundBorderless"
android:gravity="center_vertical"
android:padding="@dimen/image_button_padding"
- android:src="@drawable/ic_help_circle_outline_black_24dp" />
+ android:src="?attr/icon_help" />
<androidx.appcompat.widget.AppCompatCheckBox
android:id="@+id/forbid_screenshots"
@@ -92,7 +92,7 @@
android:background="?attr/selectableItemBackgroundBorderless"
android:gravity="center_vertical"
android:padding="@dimen/image_button_padding"
- android:src="@drawable/ic_help_circle_outline_black_24dp" />
+ android:src="?attr/icon_help" />
<androidx.appcompat.widget.AppCompatCheckBox
android:id="@+id/show_links"
@@ -122,7 +122,7 @@
android:background="?attr/selectableItemBackgroundBorderless"
android:gravity="center_vertical"
android:padding="@dimen/image_button_padding"
- android:src="@drawable/ic_help_circle_outline_black_24dp" />
+ android:src="?attr/icon_help" />
<androidx.appcompat.widget.AppCompatCheckBox
android:id="@+id/show_mappreview"
@@ -152,7 +152,7 @@
android:background="?attr/selectableItemBackgroundBorderless"
android:gravity="center_vertical"
android:padding="@dimen/image_button_padding"
- android:src="@drawable/ic_help_circle_outline_black_24dp" />
+ android:src="?attr/icon_help" />
<androidx.appcompat.widget.AppCompatCheckBox
android:id="@+id/chat_states"
@@ -182,7 +182,7 @@
android:background="?attr/selectableItemBackgroundBorderless"
android:gravity="center_vertical"
android:padding="@dimen/image_button_padding"
- android:src="@drawable/ic_help_circle_outline_black_24dp" />
+ android:src="?attr/icon_help" />
<androidx.appcompat.widget.AppCompatCheckBox
android:id="@+id/confirm_messages"
@@ -212,7 +212,7 @@
android:background="?attr/selectableItemBackgroundBorderless"
android:gravity="center_vertical"
android:padding="@dimen/image_button_padding"
- android:src="@drawable/ic_help_circle_outline_black_24dp" />
+ android:src="?attr/icon_help" />
<androidx.appcompat.widget.AppCompatCheckBox
android:id="@+id/last_seen"
@@ -241,7 +241,7 @@
android:background="?attr/selectableItemBackgroundBorderless"
android:gravity="center_vertical"
android:padding="@dimen/image_button_padding"
- android:src="@drawable/ic_help_circle_outline_black_24dp" />
+ android:src="?attr/icon_help" />
<androidx.appcompat.widget.AppCompatCheckBox
android:id="@+id/invideous"
diff --git a/src/main/res/values/attrs.xml b/src/main/res/values/attrs.xml
index afea492b3..d51172093 100644
--- a/src/main/res/values/attrs.xml
+++ b/src/main/res/values/attrs.xml
@@ -82,6 +82,7 @@
<attr name="icon_scan_qr_code" format="reference" />
<attr name="icon_enable_undecided_device" format="reference" />
<attr name="icon_scroll_down" format="reference" />
+ <attr name="icon_help" format="reference" />
<attr name="icon_notifications" format="reference" />
<attr name="icon_notifications_off" format="reference" />
diff --git a/src/main/res/values/themes.xml b/src/main/res/values/themes.xml
index 9acdd4c96..1672e1576 100644
--- a/src/main/res/values/themes.xml
+++ b/src/main/res/values/themes.xml
@@ -79,6 +79,7 @@
<item name="media_preview_ebook" type="reference">@drawable/ic_book_black_48dp</item>
<item name="media_preview_unknown" type="reference">@drawable/ic_help_black_48dp</item>
<item name="media_preview_backup" type="reference">@drawable/ic_backup_black_48dp</item>
+ <item name="icon_help" type="reference">@drawable/ic_help_circle_outline_black_24dp</item>
<item name="icon_add_group" type="reference">@drawable/ic_group_add_white_24dp</item>
<item name="icon_add_person" type="reference">@drawable/ic_person_add_white_24dp</item>
@@ -257,6 +258,7 @@
<item name="media_preview_ebook" type="reference">@drawable/ic_book_white_48dp</item>
<item name="media_preview_unknown" type="reference">@drawable/ic_help_white_48dp</item>
<item name="media_preview_backup" type="reference">@drawable/ic_backup_white_48dp</item>
+ <item name="icon_help" type="reference">@drawable/ic_help_circle_outline_white_24dp</item>
<item name="icon_add_group" type="reference">@drawable/ic_group_add_white_24dp</item>
<item name="icon_add_person" type="reference">@drawable/ic_person_add_white_24dp</item>