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
api-impl: misc stubs for WhatsApp
This commit is contained in:
@@ -587,4 +587,12 @@ public class Activity extends ContextThemeWrapper implements Window.Callback, La
|
||||
public View onCreateView(View parent, String name, Context context, AttributeSet attrs) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean onSearchRequested() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public View getCurrentFocus() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,4 +84,6 @@ public class ActivityManager {
|
||||
public List<ApplicationExitInfo> getHistoricalProcessExitReasons(String pkgname, int pid, int maxNum) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
public static boolean isUserAMonkey() {return false;}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ import android.os.Looper;
|
||||
import android.os.Message;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
|
||||
@@ -174,4 +175,8 @@ public class Dialog implements Window.Callback, DialogInterface {
|
||||
}
|
||||
|
||||
public void setCancelMessage(Message msg) {}
|
||||
|
||||
public boolean onTouchEvent(MotionEvent event) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user