浏览代码

remote comment code

/siyaoH-1.17-PlatformMessage
siyao 4 年前
当前提交
6c564609
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 7
      com.unity.uiwidgets/Runtime/Plugins/Android/UIWidgetsViewController.java

7
com.unity.uiwidgets/Runtime/Plugins/Android/UIWidgetsViewController.java


private float navigationBarHeight;
private void setup() {
//Log.i("tag", "On Setup 2");
keyboardOpen = false;
viewMetrics = new UIWidgetsViewMetrics();
setupHeights();

} catch (Exception e) {
e.printStackTrace();
}
//Log.i("UIWidgetsDebug", " hasBar: " + hasBar);
return hasBar;
}

unityView.getWindowVisibleDisplayFrame(rect);
//Log.i("UIWidgetsDebug", "calculation: " + unityView.getRootView().getHeight() + " " + rect.bottom + " " + rect.top);
rect.bottom = unityView.getRootView().getHeight() - (rect.bottom - rect.top) - rect.top;
// rect.right = unityView.getRootView().getWidth() - (rect.right - rect.left) - rect.left;

viewMetrics.insets_bottom -= navigationBarHeight;
// viewMetrics.padding_top -= statusHeight;
//Log.i("UIWidgetsDebug", "checks: " + navigationBarHidden + " " + rect.bottom);
//Log.i("UIWidgetsDebug", " padding: " + viewMetrics.padding_top + " " + viewMetrics.padding_right + " " + viewMetrics.padding_bottom + " " + viewMetrics.padding_left);
//Log.i("UIWidgetsDebug", " insets: " + viewMetrics.insets_top + " " + viewMetrics.insets_right + " " + viewMetrics.insets_bottom + " " + viewMetrics.insets_left);
}
public void setupViewMetricsChangedListener() {

正在加载...
取消
保存