Gary Qian
8cb3965a3e
Properly gate android API < 21 and remove extraneous data array. ( #6619 )
2018-10-19 15:01:43 -07:00
Gary Qian
09dcc3d5ee
Gate locale.getScript() behind version check for android API < 21 ( #6592 )
2018-10-18 14:03:48 -07:00
Gary Qian
35340ceaf0
Pass full locale list with script and variant codes to framework ( #6557 )
...
* Locale Passing
* Pass full locale list and script and variant codes to framework
* Working Android locale list passing and fallback
2018-10-17 10:53:01 -07:00
Gary Qian
61cf4c01fd
Pass scriptcode and variantcode to dart:ui Window. ( #6493 )
2018-10-10 17:22:59 -07:00
Jason Simmons
155ba09619
Use an older version of SurfaceTexture.setOnFrameAvailableListener when running on pre-Lollipop devices ( #6489 )
...
Fixes https://github.com/flutter/flutter/issues/21730
2018-10-10 15:01:48 -07:00
Gary Qian
74625aed32
Keyboard padding detection heuristic to distringuish when to include bottom inset. ( #6288 )
...
Use a screen height ratio to determine if the keyboard is onscreen or not. This is used because Android does not provide a deterministic API to detect this.
We remove the padding when the keyboard is closed and the inset is due to the hidden navigation bar, otherwise, we apply the full keyboard inset.
2018-09-24 11:38:13 -07:00
Gary Qian
f3d51b0cfb
Fix Top, Left, and Right padding for fullscreen android apps. ( #6282 )
...
* Fix Top, Left, and Right padding for fullscreen apps.
* Fix minor nits and comments, simple logic inversion
2018-09-19 18:09:10 -07:00
Michael Klimushyn
108e0a64ef
Add transparency helpers to FlutterView.java ( #6172 )
...
Fixes #9627
2018-09-05 16:47:02 -07:00
Michael Klimushyn
0981731fd7
Enable transparent FlutterViews ( #6163 )
...
- Changes rasterizer to clear the canvas with `SkColor_TRANSPARENT`
- Removes the unused `backgroundColor` param from `FlutterView.java`
2018-09-05 10:44:02 -07:00
Jason Simmons
6af60d716a
Remove obsolete discovery mechanism from FlutterView ( #6157 )
2018-09-05 10:01:33 -07:00
Kirill Nikolaev
b0b8daa7b2
Unregister onFrameAvailable callbacks when a TextureEntry is released. ( #6079 )
...
Otherwise the callbacks may be called after FlutterNativeView is destroyed and is null.
Also defensively check for whether the texture is already released in the callback because the callback may be called from another thread by a stale reference (see the comment).
This closes https://github.com/flutter/flutter/issues/20951 .
2018-09-04 06:31:01 -07:00
Stanislav Baranov
74373462e4
Fix codepush breakage caused by #5954 . ( #5996 )
2018-08-10 13:23:51 -07:00
Keerti Parthasarathy
78f8bcace7
Annotate deprecated methods with @Deprecated ( #5976 )
2018-08-08 13:02:41 -07:00
Ben Konyi
aef94b73d1
Reland "Updated background execution implementation for Android" ( #5954 )
...
* Reland "Updated background execution implementation for Android" w/ JNI fixes for merge breakages
This reverts commit 5442c0a7da385ac5ebfe7ec66126ee593d84e2a2.
2018-08-07 12:42:22 -07:00
Alexander Markov
5442c0a7da
Revert "Updated background execution implementation for Android" ( #5949 )
...
This reverts commit bc885f319b2fdf471cf1efdf733a2f6708bd4665.
2018-08-06 14:10:23 -07:00
Ben Konyi
bc885f319b
Updated background execution implementation for Android
2018-08-06 12:27:57 -07:00
amirh
3b66f20d96
Don't drop MotionEvents with unknown tool type. ( #5931 )
...
Instead, send them with the new unknown PointerDeviceKind.
We hit this when running `adb shell input tap` in tests which sends events with
an unknown tool type.
This also fills in a missing conversion for TOOL_TYPE_ERASER.
2018-08-02 16:05:55 -07:00
Jonah Williams
dcd2956f88
Initial support for more finely-grained a11y features on Window ( #5901 )
2018-07-31 18:18:19 -07:00
amirh
5da006472c
Fix wrong conversion of MotionEvent to Flutter's PointerEvent kind. ( #5894 )
...
We were sending the toolType values as-is which is wrong, e.g touch
events showed in Flutter as mouse events.
2018-07-27 16:12:26 -07:00
Jonah Williams
55b423f07f
Ensure assistiveTechnologyEnabled is initialized when the android view is set up ( #5793 )
2018-07-18 15:32:38 -07:00
Jonah Williams
2e57ecd38f
Revert rollback of "add assistiveTechnologyEnabled to window" ( #5750 )
2018-07-16 09:04:20 -07:00
Jonah Williams
9af920ef22
Revert "Add assistiveTechnologyEnabled flag to window" ( #5746 )
...
Reverts flutter/engine#5740
2018-07-13 15:55:49 -07:00
Jonah Williams
9ece2752aa
Add assistiveTechnologyEnabled flag to window ( #5740 )
2018-07-13 13:47:31 -07:00
Jonah Williams
48d6e1f891
Custom accessibility (local context) action support for iOS and Android. ( #5597 )
2018-07-11 10:27:50 -07:00
amirh
51785d244d
Remove unused Java imports ( #5663 )
2018-07-03 09:21:03 -07:00
Jonah Williams
ce06bbac58
ensure a11y state is communicated back to flutter ( #5631 )
2018-06-28 13:30:51 -07:00
Jason Simmons
fbb3436eaa
Remove some unused code from the Android host ( #5619 )
...
These functions were made obsolete by the engine refactoring
(6baff4c821 )
2018-06-27 11:06:15 -07:00
Simon Lightfoot
abd74ed5ed
Add support for physical keyboards on Android ( #5324 )
...
* Fixes flutter/flutter#7943
* Fixes flutter/flutter#9347
* Fixes flutter/flutter#11177
2018-05-24 15:21:33 -07:00
Jonah Williams
e1cd506187
add onStart hook which places flutter in an inactive state ( #5177 )
2018-05-04 14:46:57 -07:00
Jonah Williams
0b7d6be976
Re-land "do not pause rendering when android view loses focus" ( #5004 )
...
* do not pause rendering when android view loses focus
2018-04-13 17:08:00 -07:00
Jonah Williams
8a6e64a8ef
Revert "Do not pause rendering when android activity loses focus ( #4848 )" ( #4985 )
...
This reverts commit c83d1ef12df0cf8b11a6dda044f812f8cc6c16ef.
2018-04-12 11:20:24 -07:00
Jonah Williams
c83d1ef12d
Do not pause rendering when android activity loses focus ( #4848 )
...
* do not pause rendering when android view loses focus
2018-04-12 11:00:31 -07:00
Jason Simmons
5e8557330a
Allow FirstFrameListeners to remove themselves from the FlutterView's list ( #4871 )
...
Fixes https://github.com/flutter/flutter/issues/15884
2018-03-26 15:43:38 -07:00
Sarah Zakarias
2c5a1bf507
Provide lookup key to access Flutter assets in the APK ( #4785 )
2018-03-16 12:59:57 +01:00
Michael Goderbauer
5ce89a0f3d
Fixes crash on Android when activating Now on Tap ( #4536 )
2018-01-12 10:22:55 -08:00
Alexander Aprelev
6bacf4522e
This adds RPC call to set asset path. ( #4323 )
...
* This adds rpc call to simply set asset path.
This is needed when doing hot reload to pick up updated assets.
* Move asset_directory fetch for after view_id. Clean up return. Fix formatting.
* Add SetAssetBundlePath methods implementations for mac and ios
* Fix mac mm
* Fix formatting
* Merge and use nullptr
2018-01-04 09:48:01 -08:00
Michael Goderbauer
e07eafae1d
Roll forward: Parameters for SemanticActions; a11y text selection ( #4452 )
...
Reverts the revert in #4448 with fixes to pass on the bot.
This change will require framework changes in flutter/flutter#13490 .
2017-12-12 14:25:45 -08:00
Chris Bracken
6c6b709b2c
Model Android keyboard height as view inset ( #4447 )
...
Model top and side system insets as padding and bottom (keyboard) as a
view inset. This avoids applying system insets twice (once as an inset,
once as padding).
2017-12-12 11:04:42 -08:00
Michael Goderbauer
056fd4597f
Revert " Add parameters to SemanticActions; implement extend selection for a11y ( #4444 )" ( #4448 )
...
This reverts commit 59c3a37e6436d60381d9708113228c83ccc6b7f9.
2017-12-12 10:53:15 -08:00
Michael Goderbauer
59c3a37e64
Add parameters to SemanticActions; implement extend selection for a11y ( #4444 )
2017-12-12 10:06:04 -08:00
Jason Simmons
aaa758d619
Check for a detached FlutterNativeView before sending messages ( #4445 )
...
Fixes https://github.com/flutter/flutter/issues/13481
2017-12-11 17:15:21 -08:00
Michael Goderbauer
fb44dce8c2
A11y cursor movements for text fields on Android ( #4419 )
...
* a11y cursor movement by character
* focus fixes
* doc fixes
2017-12-06 15:46:35 -08:00
Zachary Anderson
619f452ece
[Android] Extract the PluginRegistry from the FlutterActivity ( #4393 )
2017-11-30 11:05:55 -08:00
Chris Bracken
93648ef0ed
Expose Window.viewInsets in dart:ui ( #4403 )
...
Window.viewInsets is the set of window-relative insets that describe the
area of the window that an application may want to treat as effectively
reducing the size of the content. Typically this is due to system UI
that fully obscures underlying content, such as the keyboard.
This area differs from padding in that padding is the set of insets that
describe the area of the window that may be partially (or fully)
obscured by system UI or physical intrusions into the view area (e.g.
iPhone X sensor housing, status bar, or the iPhone X home indicator
widget).
This patch does not yet enable the iOS bottom edge safe area. Once the
framework has been updated to use viewInsets for bottom-edge occlusions
(today, the keyboard), the bottom safe area will be enabled and
framework patches that depend on it, landed.
2017-11-29 16:27:15 -08:00
Zachary Anderson
7804e8588a
View destroy listener ( #4347 )
...
[Android] Allow persisting a FlutterNativeView across activities.
2017-11-13 13:56:48 -08:00
Jason Simmons
bb55d65085
Delete the native view when destroying the FlutterView ( #4356 )
...
Fixes https://github.com/flutter/flutter/issues/12996
2017-11-13 13:16:48 -08:00
Zachary Anderson
f5bdf9b0fc
[Android] Pulls the native platform view out of FlutterView ( #4338 )
2017-11-09 12:10:00 -08:00
Chinmay Garde
9a960f82f5
Add texture support (eg video, camera) ( #4159 )
2017-11-02 10:57:29 +01:00
Zachary Anderson
57f361dc6a
Pass option to reuse an existing runtime controller ( #4253 )
2017-10-20 10:17:21 -07:00
Yegor
23f5ccd25c
Add alwaysUse24HourFormat and textScaleFactor ( #4202 )
...
* systems/settings channel split
* merge textScaleFactor and alwaysUse24HourFormat into flutter/settings channel
* add debugOverrideAlwaysUse24HourFormat
* implement textScaleFactor on iOS
* address comments
* remove debugOverrideAlwaysUse24HourFormat
* clang-format
2017-10-18 16:13:43 -07:00