You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
add lots of java APIs needed for Whatsapp
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user