3a1181bd82
resets the summary of the notifications
17 lines
602 B
Java
17 lines
602 B
Java
package com.keylesspalace.tusky;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.content.SharedPreferences;
|
|
|
|
public class NotificationClearBroadcastReceiver extends BroadcastReceiver {
|
|
@Override
|
|
public void onReceive(Context context, Intent intent) {
|
|
SharedPreferences notificationPreferences = context.getSharedPreferences("Notifications", Context.MODE_PRIVATE);
|
|
SharedPreferences.Editor editor = notificationPreferences.edit();
|
|
editor.putString("current", "[]");
|
|
editor.apply();
|
|
}
|
|
}
|