浏览代码

fix

/siyaoH-1.17-PlatformMessage
siyao 4 年前
当前提交
67af4ec9
共有 4 个文件被更改,包括 3 次插入8 次删除
  1. 2
      Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/GalleryMain.cs
  2. 4
      com.unity.uiwidgets/Runtime/Plugins/Android/InputConnectionAdaptor.java
  3. 4
      com.unity.uiwidgets/Runtime/engine2/AndroidPlatformUtil.cs
  4. 1
      com.unity.uiwidgets/Runtime/widgets/binding.cs

2
Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/GalleryMain.cs


protected override void onEnable()
{
AndroidPlatformUtil.SetStatusBarValue(true);
AndroidPlatformUtil.ShowStatusBar(true);
AddFont("Material Icons", new List<string> {"MaterialIcons-Regular.ttf"}, new List<int> {0});
AddFont("CupertinoIcons", new List<string> {"CupertinoIcons.ttf"}, new List<int> {0});
AddFont("GalleryIcons", new List<string> {"gallery/GalleryIcons.ttf"}, new List<int> {0});

4
com.unity.uiwidgets/Runtime/Plugins/Android/InputConnectionAdaptor.java


// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package com.unity.uiwidgets.plugin.editing;
import android.content.Context;

4
com.unity.uiwidgets/Runtime/engine2/AndroidPlatformUtil.cs


#if UNITY_ANDROID
#if !UNITY_EDITOR && UNITY_ANDROID
using UnityEngine;
using AOT;
using System.IO;

GL.IssuePluginEvent(GetUnityContextEventFunc(), 1);
}
public static void SetStatusBarValue(bool value) {
public static void ShowStatusBar(bool value) {
#if !UNITY_EDITOR
using (var util = new AndroidJavaClass("com.unity.uiwidgets.plugin.Utils")) {
util.CallStatic("SetStatusBarState", value);

1
com.unity.uiwidgets/Runtime/widgets/binding.cs


public void attachRootWidget(Widget rootWidget) {
_readyToProduceFrames = true;
window.updateSafeArea();
_renderViewElement = new RenderObjectToWidgetAdapter<RenderBox>(
container: renderView,

正在加载...
取消
保存