Yep, just look in the src/ nl/ rnplus/ olv/ messages/ calls/ folder for the following files and and replace UTF-8 with iso-8859-1
- DisplayPanel.java
- GetAlertResponse.java
Could you please move the filter to the ShowNotificationReceiver in the LiveViewService?
I tried to add the filter but my implementation doesn't work / I could not verify it worked so I hid it away.
Please change the accessibility services back to their original state.
The ShowNotificationReceiver: (maybe you see the bug in an instant. If you don't please move your filter to this part of the app, since both accessibility services deliver the notifications to this receiver)
Code:
public class ShowNotificationReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals(ACTION_RECEIVE_SMS)) {
NotificationNeedsUpdate = true;
ContentNotification notification = SMSNotificationManager.getNotificationContent(context, intent);
LiveViewDbHelper.addNotification(myself, notification.getTitle(), notification.getContent(), LiveViewDbConstants.NTF_SMS, notification.getTimestamp());
}
else {
String notificationContentFilter = (new Prefs(myself)).getNotificationFilter(); // Added by jkorp
if (!notificationContentFilter.contains(intent.getExtras().getString("contents"))) {
NotificationNeedsUpdate = true;
LiveViewDbHelper.addNotification(myself, intent.getExtras().getString("title"), intent.getExtras().getString("contents"), intent.getExtras().getInt("type"), intent.getExtras().getLong("timestamp"));
Log.w("ShowNotificationReceiver", "Added new notification.");
}
else {
Log.w("ShowNotificationReceiver", "Notification not added because of filter.");
}
}
}
}
Thank you for your help!