mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-24 16:47:32 +01:00
Ranem NotificationType.UNDEFINED to UNKNOWN
This commit is contained in:
parent
17c152596b
commit
92c629c351
@ -279,7 +279,7 @@ public class NotificationListener extends NotificationListenerService {
|
||||
notificationSpec.type = NotificationType.FACEBOOK;
|
||||
break;
|
||||
default:
|
||||
notificationSpec.type = NotificationType.UNDEFINED;
|
||||
notificationSpec.type = NotificationType.UNKNOWN;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ public class PebbleReceiver extends BroadcastReceiver {
|
||||
}
|
||||
|
||||
if (notificationSpec.title != null) {
|
||||
notificationSpec.type = NotificationType.UNDEFINED;
|
||||
notificationSpec.type = NotificationType.UNKNOWN;
|
||||
String sender = intent.getStringExtra("sender");
|
||||
if ("Conversations".equals(sender)) {
|
||||
notificationSpec.type = NotificationType.CHAT;
|
||||
|
@ -2,7 +2,7 @@ package nodomain.freeyourgadget.gadgetbridge.model;
|
||||
|
||||
public enum NotificationType {
|
||||
|
||||
UNDEFINED,
|
||||
UNKNOWN,
|
||||
|
||||
CHAT,
|
||||
EMAIL,
|
||||
|
@ -578,7 +578,7 @@ public class MiBand2Support extends AbstractBTLEDeviceSupport {
|
||||
task = "chat message received";
|
||||
alertLevel = MiBand2Service.ALERT_LEVEL_MESSAGE;
|
||||
break;
|
||||
case UNDEFINED:
|
||||
case UNKNOWN:
|
||||
default:
|
||||
task = "generic notification received";
|
||||
alertLevel = MiBand2Service.ALERT_LEVEL_VIBRATE_ONLY;
|
||||
|
@ -554,7 +554,7 @@ public class MiBandSupport extends AbstractBTLEDeviceSupport {
|
||||
case FACEBOOK:
|
||||
performPreferredNotification("chat message received", origin, null);
|
||||
break;
|
||||
case UNDEFINED:
|
||||
case UNKNOWN:
|
||||
default:
|
||||
performPreferredNotification("generic notification received", origin, null);
|
||||
}
|
||||
|
@ -230,18 +230,18 @@
|
||||
android:defaultValue="@string/p_waterdrop"
|
||||
android:entries="@array/vibration_profile"
|
||||
android:entryValues="@array/vibration_profile_values"
|
||||
android:key="mi_vibration_profile_undefined"
|
||||
android:key="mi_vibration_profile_unknown"
|
||||
android:title="@string/miband_prefs_vibration"
|
||||
android:summary="%s" />
|
||||
|
||||
<EditTextPreference
|
||||
android:defaultValue="3"
|
||||
android:inputType="number"
|
||||
android:key="mi_vibration_count_undefined"
|
||||
android:key="mi_vibration_count_unknown"
|
||||
android:maxLength="1"
|
||||
android:title="@string/pref_title_notifications_repetitions" />
|
||||
<Preference
|
||||
android:key="mi_try_undefined"
|
||||
android:key="mi_try_unknown"
|
||||
android:persistent="false"
|
||||
android:title="@string/vibration_try"/>
|
||||
</PreferenceScreen>
|
||||
|
Loading…
x
Reference in New Issue
Block a user