Fix a typo

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-06-20 19:39:53 +02:00
parent 1678a2e7ab
commit 8d409cd4d6

View File

@ -46,12 +46,12 @@ import com.nextcloud.talk.application.NextcloudTalkApplication;
import com.nextcloud.talk.models.RingtoneSettings; import com.nextcloud.talk.models.RingtoneSettings;
import com.nextcloud.talk.models.SignatureVerification; import com.nextcloud.talk.models.SignatureVerification;
import com.nextcloud.talk.models.json.push.DecryptedPushMessage; import com.nextcloud.talk.models.json.push.DecryptedPushMessage;
import com.nextcloud.talk.utils.singletons.ApplicationWideCurrentRoomHolder;
import com.nextcloud.talk.utils.NotificationUtils; import com.nextcloud.talk.utils.NotificationUtils;
import com.nextcloud.talk.utils.PushUtils; import com.nextcloud.talk.utils.PushUtils;
import com.nextcloud.talk.utils.bundle.BundleKeys; import com.nextcloud.talk.utils.bundle.BundleKeys;
import com.nextcloud.talk.utils.database.user.UserUtils; import com.nextcloud.talk.utils.database.user.UserUtils;
import com.nextcloud.talk.utils.preferences.AppPreferences; import com.nextcloud.talk.utils.preferences.AppPreferences;
import com.nextcloud.talk.utils.singletons.ApplicationWideCurrentRoomHolder;
import com.nextcloud.talk.utils.singletons.ApplicationWideStateHolder; import com.nextcloud.talk.utils.singletons.ApplicationWideStateHolder;
import org.parceler.Parcels; import org.parceler.Parcels;
@ -79,6 +79,7 @@ public class NotificationJob extends Job {
@Inject @Inject
AppPreferences appPreferences; AppPreferences appPreferences;
@NonNull @NonNull
@Override @Override
protected Result onRunJob(Params params) { protected Result onRunJob(Params params) {
@ -159,8 +160,8 @@ public class NotificationJob extends Job {
String ringtonePreferencesString; String ringtonePreferencesString;
switch (decryptedPushMessage.getType()) { switch (decryptedPushMessage.getType()) {
case "call": case "call":
getContext().startActivity(intent); context.startActivity(intent);
break; return Result.SUCCESS;
case "room": case "room":
// do absolutely nothing, we won't even come to this point // do absolutely nothing, we won't even come to this point
break; break;
@ -220,12 +221,12 @@ public class NotificationJob extends Job {
groupName); groupName);
NotificationUtils.createNotificationChannel(notificationManager, NotificationUtils.createNotificationChannel(notificationManager,
NotificationUtils.NOTIFICATION_CHANNEL_CALLS_V2, context.getResources() NotificationUtils.NOTIFICATION_CHANNEL_MESSAGES_V2, context.getResources()
.getString(R.string.nc_notification_channel_messages), context.getResources() .getString(R.string.nc_notification_channel_messages), context.getResources()
.getString(R.string.nc_notification_channel_messages_description), true, .getString(R.string.nc_notification_channel_messages_description), true,
NotificationManager.IMPORTANCE_HIGH); NotificationManager.IMPORTANCE_HIGH);
notificationBuilder.setChannelId(NotificationUtils.NOTIFICATION_CHANNEL_CALLS_V2); notificationBuilder.setChannelId(NotificationUtils.NOTIFICATION_CHANNEL_MESSAGES_V2);
notificationBuilder.setGroup(Long.toString(crc32.getValue())); notificationBuilder.setGroup(Long.toString(crc32.getValue()));
} }