api-impl: misc stubs and formatting fixes

This commit is contained in:
Mis012
2025-06-08 13:42:42 +02:00
parent ed240daf66
commit 364070fa1f
4 changed files with 7 additions and 4 deletions

View File

@@ -48,8 +48,7 @@ static void android_layout_measure(GtkLayoutManager *layout_manager, GtkWidget *
*natural = (*env)->CallIntMethod(env, layout->view, handle_cache.view.getMeasuredWidth); *natural = (*env)->CallIntMethod(env, layout->view, handle_cache.view.getMeasuredWidth);
*minimum = heightMeasureSpec && !widthMeasureSpec ? *natural *minimum = heightMeasureSpec && !widthMeasureSpec ? *natural
: (*env)->CallIntMethod(env, layout->view, handle_cache.view.getSuggestedMinimumWidth); : (*env)->CallIntMethod(env, layout->view, handle_cache.view.getSuggestedMinimumWidth);
} } else if (orientation == GTK_ORIENTATION_VERTICAL) {
if (orientation == GTK_ORIENTATION_VERTICAL) {
*natural = (*env)->CallIntMethod(env, layout->view, handle_cache.view.getMeasuredHeight); *natural = (*env)->CallIntMethod(env, layout->view, handle_cache.view.getMeasuredHeight);
*minimum = widthMeasureSpec && !heightMeasureSpec ? *natural *minimum = widthMeasureSpec && !heightMeasureSpec ? *natural
: (*env)->CallIntMethod(env, layout->view, handle_cache.view.getSuggestedMinimumHeight); : (*env)->CallIntMethod(env, layout->view, handle_cache.view.getSuggestedMinimumHeight);

View File

@@ -177,6 +177,8 @@ public class Dialog implements Window.Callback, DialogInterface {
public void setCancelMessage(Message msg) {} public void setCancelMessage(Message msg) {}
public void setDismissMessage(Message msg) {}
public boolean onTouchEvent(MotionEvent event) { public boolean onTouchEvent(MotionEvent event) {
return false; return false;
} }

View File

@@ -3,6 +3,5 @@ package android.content;
import android.os.IBinder; import android.os.IBinder;
public interface ServiceConnection { public interface ServiceConnection {
public void onServiceConnected (ComponentName name, IBinder service); public void onServiceConnected (ComponentName name, IBinder service);
} }

View File

@@ -172,6 +172,9 @@ public class PopupWindow {
return native_isTouchable(popover); return native_isTouchable(popover);
} }
public void setOverlapAnchor(boolean overlap) {
}
protected native long native_constructor(); protected native long native_constructor();
protected native void native_setContentView(long widget, long contentView); protected native void native_setContentView(long widget, long contentView);
protected native void native_showAsDropDown(long widget, long anchor, int xoff, int yoff, int gravity); protected native void native_showAsDropDown(long widget, long anchor, int xoff, int yoff, int gravity);