Ranem NotificationType.UNDEFINED to UNKNOWN

master
cpfeiffer 2016-10-10 23:06:44 +02:00
parent 17c152596b
commit 92c629c351
6 changed files with 8 additions and 8 deletions

View File

@ -279,7 +279,7 @@ public class NotificationListener extends NotificationListenerService {
notificationSpec.type = NotificationType.FACEBOOK;
break;
default:
notificationSpec.type = NotificationType.UNDEFINED;
notificationSpec.type = NotificationType.UNKNOWN;
break;
}

View File

@ -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;

View File

@ -2,7 +2,7 @@ package nodomain.freeyourgadget.gadgetbridge.model;
public enum NotificationType {
UNDEFINED,
UNKNOWN,
CHAT,
EMAIL,

View File

@ -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;

View File

@ -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);
}

View File

@ -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>