mirror of https://github.com/tuskyapp/Tusky.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
602 B
16 lines
602 B
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(); |
|
} |
|
}
|
|
|