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
Dialog: some fixes for CTS
Most Dialog test still fail, because we don't handle KeyEvents
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
package android.app;
|
||||
|
||||
public class DatePickerDialog {
|
||||
import android.content.Context;
|
||||
|
||||
public class DatePickerDialog extends Dialog {
|
||||
|
||||
public DatePickerDialog(Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public interface OnDateSetListener {}
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ public class Dialog implements Window.Callback, DialogInterface {
|
||||
private native void nativeSetContentView(long ptr, long widget);
|
||||
private native void nativeShow(long ptr);
|
||||
private native void nativeClose(long ptr);
|
||||
private native boolean nativeIsShowing(long ptr);
|
||||
|
||||
private Context context;
|
||||
private Window window;
|
||||
@@ -90,7 +91,7 @@ public class Dialog implements Window.Callback, DialogInterface {
|
||||
}
|
||||
|
||||
public boolean isShowing() {
|
||||
return false;
|
||||
return nativeIsShowing(nativePtr);
|
||||
}
|
||||
|
||||
public void dismiss() {
|
||||
|
||||
Reference in New Issue
Block a user