Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_43355755
engine
提交
f79f7f63
E
engine
项目概览
weixin_43355755
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
f79f7f63
编写于
12月 17, 2018
作者:
T
Todd Volkert
提交者:
GitHub
12月 17, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Allow inferred types using diamond syntax (#7237)
上级
951edf3e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
14 addition
and
15 deletion
+14
-15
shell/platform/android/io/flutter/app/FlutterActivityDelegate.java
...tform/android/io/flutter/app/FlutterActivityDelegate.java
+3
-3
shell/platform/android/io/flutter/plugin/editing/InputConnectionAdaptor.java
...oid/io/flutter/plugin/editing/InputConnectionAdaptor.java
+1
-1
shell/platform/android/io/flutter/view/AccessibilityBridge.java
...platform/android/io/flutter/view/AccessibilityBridge.java
+8
-9
shell/platform/android/io/flutter/view/FlutterView.java
shell/platform/android/io/flutter/view/FlutterView.java
+1
-1
shell/platform/android/io/flutter/view/ResourceExtractor.java
...l/platform/android/io/flutter/view/ResourceExtractor.java
+1
-1
未找到文件。
shell/platform/android/io/flutter/app/FlutterActivityDelegate.java
浏览文件 @
f79f7f63
...
...
@@ -171,7 +171,7 @@ public final class FlutterActivityDelegate
String
appBundlePath
=
FlutterMain
.
findAppBundlePath
(
activity
.
getApplicationContext
());
if
(
appBundlePath
!=
null
)
{
FlutterRunArguments
arguments
=
new
FlutterRunArguments
();
ArrayList
<
String
>
bundlePaths
=
new
ArrayList
<
String
>();
ArrayList
<
String
>
bundlePaths
=
new
ArrayList
<>();
if
(
FlutterMain
.
getUpdateInstallationPath
()
!=
null
)
{
bundlePaths
.
add
(
FlutterMain
.
getUpdateInstallationPath
());
}
...
...
@@ -296,7 +296,7 @@ public final class FlutterActivityDelegate
// Before adding more entries to this list, consider that arbitrary
// Android applications can generate intents with extra data and that
// there are many security-sensitive args in the binary.
ArrayList
<
String
>
args
=
new
ArrayList
<
String
>();
ArrayList
<
String
>
args
=
new
ArrayList
<>();
if
(
intent
.
getBooleanExtra
(
"trace-startup"
,
false
))
{
args
.
add
(
"--trace-startup"
);
}
...
...
@@ -343,7 +343,7 @@ public final class FlutterActivityDelegate
}
if
(!
flutterView
.
getFlutterNativeView
().
isApplicationRunning
())
{
FlutterRunArguments
args
=
new
FlutterRunArguments
();
ArrayList
<
String
>
bundlePaths
=
new
ArrayList
<
String
>();
ArrayList
<
String
>
bundlePaths
=
new
ArrayList
<>();
if
(
FlutterMain
.
getUpdateInstallationPath
()
!=
null
)
{
bundlePaths
.
add
(
FlutterMain
.
getUpdateInstallationPath
());
}
...
...
shell/platform/android/io/flutter/plugin/editing/InputConnectionAdaptor.java
浏览文件 @
f79f7f63
...
...
@@ -51,7 +51,7 @@ class InputConnectionAdaptor extends BaseInputConnection {
selectionStart
,
selectionEnd
,
composingStart
,
composingEnd
);
HashMap
<
Object
,
Object
>
state
=
new
HashMap
<
Object
,
Object
>();
HashMap
<
Object
,
Object
>
state
=
new
HashMap
<>();
state
.
put
(
"text"
,
mEditable
.
toString
());
state
.
put
(
"selectionBase"
,
selectionStart
);
state
.
put
(
"selectionExtent"
,
selectionEnd
);
...
...
shell/platform/android/io/flutter/view/AccessibilityBridge.java
浏览文件 @
f79f7f63
...
...
@@ -108,8 +108,8 @@ class AccessibilityBridge
AccessibilityBridge
(
FlutterView
owner
)
{
assert
owner
!=
null
;
mOwner
=
owner
;
mObjects
=
new
HashMap
<
Integer
,
SemanticsObject
>();
mCustomAccessibilityActions
=
new
HashMap
<
Integer
,
CustomAccessibilityAction
>();
mObjects
=
new
HashMap
<>();
mCustomAccessibilityActions
=
new
HashMap
<>();
previousRoutes
=
new
ArrayList
<>();
mFlutterAccessibilityChannel
=
new
BasicMessageChannel
<>(
owner
,
"flutter/accessibility"
,
StandardMessageCodec
.
INSTANCE
);
...
...
@@ -443,7 +443,7 @@ class AccessibilityBridge
return
true
;
}
case
AccessibilityNodeInfo
.
ACTION_SET_SELECTION
:
{
final
Map
<
String
,
Integer
>
selection
=
new
HashMap
<
String
,
Integer
>();
final
Map
<
String
,
Integer
>
selection
=
new
HashMap
<>();
final
boolean
hasSelection
=
arguments
!=
null
&&
arguments
.
containsKey
(
AccessibilityNodeInfo
.
ACTION_ARGUMENT_SELECTION_START_INT
)
...
...
@@ -611,7 +611,7 @@ class AccessibilityBridge
}
void
updateSemantics
(
ByteBuffer
buffer
,
String
[]
strings
)
{
ArrayList
<
SemanticsObject
>
updated
=
new
ArrayList
<
SemanticsObject
>();
ArrayList
<
SemanticsObject
>
updated
=
new
ArrayList
<>();
while
(
buffer
.
hasRemaining
())
{
int
id
=
buffer
.
getInt
();
SemanticsObject
object
=
getOrCreateObject
(
id
);
...
...
@@ -627,7 +627,7 @@ class AccessibilityBridge
}
}
Set
<
SemanticsObject
>
visitedObjects
=
new
HashSet
<
SemanticsObject
>();
Set
<
SemanticsObject
>
visitedObjects
=
new
HashSet
<>();
SemanticsObject
rootObject
=
getRootObject
();
List
<
SemanticsObject
>
newRoutes
=
new
ArrayList
<>();
if
(
rootObject
!=
null
)
{
...
...
@@ -1115,7 +1115,7 @@ class AccessibilityBridge
childrenInHitTestOrder
=
null
;
}
else
{
if
(
childrenInTraversalOrder
==
null
)
childrenInTraversalOrder
=
new
ArrayList
<
SemanticsObject
>(
childCount
);
childrenInTraversalOrder
=
new
ArrayList
<>(
childCount
);
else
childrenInTraversalOrder
.
clear
();
...
...
@@ -1126,7 +1126,7 @@ class AccessibilityBridge
}
if
(
childrenInHitTestOrder
==
null
)
childrenInHitTestOrder
=
new
ArrayList
<
SemanticsObject
>(
childCount
);
childrenInHitTestOrder
=
new
ArrayList
<>(
childCount
);
else
childrenInHitTestOrder
.
clear
();
...
...
@@ -1141,8 +1141,7 @@ class AccessibilityBridge
customAccessibilityActions
=
null
;
}
else
{
if
(
customAccessibilityActions
==
null
)
customAccessibilityActions
=
new
ArrayList
<
CustomAccessibilityAction
>(
actionCount
);
customAccessibilityActions
=
new
ArrayList
<>(
actionCount
);
else
customAccessibilityActions
.
clear
();
...
...
shell/platform/android/io/flutter/view/FlutterView.java
浏览文件 @
f79f7f63
...
...
@@ -319,7 +319,7 @@ public class FlutterView extends SurfaceView
Method
localeListGet
=
localeList
.
getClass
().
getDeclaredMethod
(
"get"
,
int
.
class
);
Method
localeListSize
=
localeList
.
getClass
().
getDeclaredMethod
(
"size"
);
int
localeCount
=
(
int
)
localeListSize
.
invoke
(
localeList
);
List
<
String
>
data
=
new
ArrayList
<
String
>();
List
<
String
>
data
=
new
ArrayList
<>();
for
(
int
index
=
0
;
index
<
localeCount
;
++
index
)
{
Locale
locale
=
(
Locale
)
localeListGet
.
invoke
(
localeList
,
index
);
data
.
add
(
locale
.
getLanguage
());
...
...
shell/platform/android/io/flutter/view/ResourceExtractor.java
浏览文件 @
f79f7f63
...
...
@@ -330,7 +330,7 @@ class ResourceExtractor {
ResourceExtractor
(
Context
context
)
{
mContext
=
context
;
mResources
=
new
HashSet
<
String
>();
mResources
=
new
HashSet
<>();
}
ResourceExtractor
addResource
(
String
resource
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录