mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 04:39:54 +01:00
Removed logging.
This commit is contained in:
@@ -3,7 +3,6 @@ package org.briarproject.briar.android;
|
|||||||
import android.app.IntentService;
|
import android.app.IntentService;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.support.annotation.Nullable;
|
import android.support.annotation.Nullable;
|
||||||
import android.util.Log;
|
|
||||||
|
|
||||||
import org.briarproject.briar.api.android.AndroidNotificationManager;
|
import org.briarproject.briar.api.android.AndroidNotificationManager;
|
||||||
|
|
||||||
@@ -37,28 +36,18 @@ public class NotificationCleanupService extends IntentService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onHandleIntent(@Nullable Intent i) {
|
protected void onHandleIntent(@Nullable Intent i) {
|
||||||
if (i == null || i.getData() == null) {
|
if (i == null || i.getData() == null) return;
|
||||||
Log.i(TAG, "No intent or no data");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
String uri = i.getData().toString();
|
String uri = i.getData().toString();
|
||||||
if (uri.equals(CONTACT_URI)) {
|
if (uri.equals(CONTACT_URI)) {
|
||||||
Log.i(TAG, "Clearing contact notifications");
|
|
||||||
notificationManager.clearAllContactNotifications();
|
notificationManager.clearAllContactNotifications();
|
||||||
} else if (uri.equals(GROUP_URI)) {
|
} else if (uri.equals(GROUP_URI)) {
|
||||||
Log.i(TAG, "Clearing group notifications");
|
|
||||||
notificationManager.clearAllGroupMessageNotifications();
|
notificationManager.clearAllGroupMessageNotifications();
|
||||||
} else if (uri.equals(FORUM_URI)) {
|
} else if (uri.equals(FORUM_URI)) {
|
||||||
Log.i(TAG, "Clearing forum notifications");
|
|
||||||
notificationManager.clearAllForumPostNotifications();
|
notificationManager.clearAllForumPostNotifications();
|
||||||
} else if (uri.equals(BLOG_URI)) {
|
} else if (uri.equals(BLOG_URI)) {
|
||||||
Log.i(TAG, "Clearing blog notifications");
|
|
||||||
notificationManager.clearAllBlogPostNotifications();
|
notificationManager.clearAllBlogPostNotifications();
|
||||||
} else if (uri.equals(INTRODUCTION_URI)) {
|
} else if (uri.equals(INTRODUCTION_URI)) {
|
||||||
Log.i(TAG, "Clearing introduction notifications");
|
|
||||||
notificationManager.clearAllIntroductionNotifications();
|
notificationManager.clearAllIntroductionNotifications();
|
||||||
} else {
|
|
||||||
Log.w(TAG, "Unknown intent URI: " + uri);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user