mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
Prefer long notification text by default
This commit is contained in:
parent
fc048f8768
commit
25668bb762
@ -370,7 +370,7 @@ public class NotificationListener extends NotificationListenerService {
|
||||
|
||||
LOG.info("Processing notification " + notificationSpec.getId() + " age: " + (System.currentTimeMillis() - notification.when) + " from source " + source + " with flags: " + notification.flags);
|
||||
|
||||
boolean preferBigText = source.startsWith("com.fsck.k9") || source.equals("com.google.android.gm");
|
||||
boolean preferBigText = prefs.getBoolean("notification_prefer_long_text", true);
|
||||
|
||||
dissectNotificationTo(notification, notificationSpec, preferBigText);
|
||||
|
||||
|
@ -200,6 +200,8 @@
|
||||
<string name="pref_title_whenscreenon">…also when screen is on</string>
|
||||
<string name="pref_title_notifications_ignore_low_priority">Ignore low priority notifications</string>
|
||||
<string name="pref_summary_notifications_ignore_low_priority">Do not send low and minimum priority notifications to the watch</string>
|
||||
<string name="pref_title_notification_prefer_long_text">Prefer long notification text</string>
|
||||
<string name="pref_summary_notification_prefer_long_text">If available, send the long notification text to the device</string>
|
||||
<string name="pref_title_notification_filter">Do Not Disturb</string>
|
||||
<string name="pref_summary_notification_filter">Block all notifications when Do Not Disturb is enabled on the phone</string>
|
||||
<string name="pref_header_notification_application_settings">Per application settings</string>
|
||||
|
@ -24,6 +24,13 @@
|
||||
android:title="@string/pref_title_notifications_ignore_low_priority"
|
||||
android:summary="@string/pref_summary_notifications_ignore_low_priority" />
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="notification_prefer_long_text"
|
||||
android:layout="@layout/preference_checkbox"
|
||||
android:title="@string/pref_title_notification_prefer_long_text"
|
||||
android:summary="@string/pref_summary_notification_prefer_long_text" />
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="minimize_priority"
|
||||
|
Loading…
Reference in New Issue
Block a user