add lots of java APIs needed for Whatsapp

This commit is contained in:
Julian Winkler
2024-06-15 22:32:01 +02:00
parent b81f53e4b2
commit bb50bbfa91
61 changed files with 383 additions and 71 deletions

View File

@@ -4,6 +4,7 @@ import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.os.Looper;
public class NotificationManager {
public void cancelAll() {}
@@ -40,7 +41,7 @@ public class NotificationManager {
public void cancel(String tag, final int id) {
// remove_notification doesn't work reliably when sent directly after add_notification in GNOME session.
// So we give some extra delay here.
new Handler().postDelayed(new Runnable() {
new Handler(Looper.getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
nativeCancel(id);