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 and formatting fixes
This commit is contained in:
@@ -48,11 +48,10 @@ 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);
|
||||||
}
|
}
|
||||||
if (*natural < *minimum)
|
if (*natural < *minimum)
|
||||||
*natural = *minimum;
|
*natural = *minimum;
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user