Matt Carroll
008090b8ab
Extracted PlatformViewsChannel from PlatformViewsController. ( #7847 )
2019-06-03 11:04:33 -07:00
Matt Carroll
904cfc4fe3
Add @UiThread to MethodChannel and related classes/calls ( #32642 ). ( #8947 )
2019-05-13 13:26:31 -07:00
Alan Doubleday
075b4899d0
Support ContextWrapper when FlutterView is instantiated within a Fragment. ( #7776 )
2019-04-08 10:30:36 -07:00
Jason Simmons
68bd4f2c64
Do not drop the DartExecutor's message handler when a FlutterNativeView is detached from the FlutterView ( #8254 )
...
An activity can use ViewFactory.retainNativeFlutterView to reuse a
FlutterNativeView across multiple instances of the activity. In this
scenario, the FlutterNativeView should continue to handle incoming messages
sent from Dart.
2019-03-21 18:08:58 -07:00
Amir Hardon
6a8a45fc4f
Have the AccessibilityBridge attach/detach itself to the ( #8229 )
...
PlatformViewsDelegate.
Since onDetachedFromWindow can be called after the activity was
destroyed, the previous call to detach the accessibility bridge could
have crash as the NativeFlutterView was already null.
2019-03-20 12:26:30 -07:00
Matt Carroll
1dbd2046b5
Moved io.flutter.embedding.engine.android package to io.flutter.embedding.android ( #8221 )
2019-03-20 11:30:49 -07:00
Amir Hardon
45f69ac471
Plumb a reference of PlatformViewsController and AccessibilityBridge to each other ( #8208 )
...
This is in preparation for implementing platform views a11y on Android.
And e2e working prototype is available here: https://github.com/amirh/engine/tree/a11y_hacks
flutter/flutter#19418
2019-03-19 15:48:45 -07:00
Matt Carroll
09db84fad6
Android Embedding PR 19: Add accessibility to new FlutterView. ( #8109 )
2019-03-14 14:24:49 -07:00
Matt Carroll
8b0df6ded5
Bugfix #29203 : NPE in getAccessibilityProvider in old FlutterView. ( #8126 )
2019-03-11 23:45:03 -07:00
Matt Carroll
20165b3147
Integrated AndroidTouchProcessor within the old FlutterView ( #8095 )
2019-03-11 16:04:44 -07:00
Matt Carroll
718329ce6e
Android Embedding PR 17: Clarify AccessibilityBridge and move logic out of FlutterView. ( #8061 )
2019-03-08 18:09:04 -08:00
Michael Klimushyn
1d10e0eb67
Guard against NewAPI failures ( #8048 )
...
Adds minimum SDK checks around minimum APIs.
flutter/flutter#28848
2019-03-08 13:33:58 -08:00
Jonah Williams
ca0bac4fb0
Revert "add signal to pointer kinds" ( #8066 )
2019-03-06 20:55:34 -08:00
stuartmorgan
dd80fc9ff6
Add engine support for scrollwheel events ( #7494 )
...
Adds support for pointer signals, in a way that will support both discrete events (e.g., scroll wheels, flutter/flutter#22762 ) and continuous gestures (e.g., trackpad scroll, flutter/flutter#21953 ).
Also exposes these new event options to the embedder. Does not include code to send the
new events from the platform shells.
2019-03-05 14:12:07 -08:00
Greg Spencer
293cfcaa54
Guard against using Android API not defined in API level 16 & 17 ( #8006 )
...
This adds a guard around the call to MotionEvent.isFromSource, which is not implemented in API 16 and 17.
Fixes flutter/flutter#28640
2019-03-01 14:53:22 -08:00
Jason Simmons
1089b5c9f8
Check for a null pressure range for motion events ( #7986 )
...
Fixes https://github.com/flutter/flutter/issues/28490
2019-02-27 11:27:19 -08:00
Jason Simmons
9f92324fd6
Suppress deprecation warning for usage of Configuration.locale ( #7973 )
2019-02-26 17:03:10 -08:00
Matt Carroll
18ad03d49d
Fixed an Android keyboard entry bug that was introduced by the embedding refactor. ( #28438 ) ( #7954 )
2019-02-25 19:15:49 -08:00
Ivan
f7306394e3
fix sendLocales on old android versions ( #7937 )
...
[Configuration.getLocales()][1] was added in API level 24.
For earlier versions, we instead return only the current locale.
Fixes https://github.com/flutter/flutter/issues/28321
[1]: https://developer.android.com/reference/android/content/res/Configuration#getLocales()
2019-02-24 22:29:16 -08:00
Matt Carroll
2f4a38dbd3
Android embedding refactor pr3 add remaining systemchannels ( #7892 )
...
Merging back in after reversion. Fixed some messaging issues in FlutterNativeView and corrected some message parsing.
2019-02-20 17:05:31 -08:00
Dan Field
6d7eb52185
Revert "Android embedding refactor pr3 add remaining systemchannels ( #7874 )" ( #7886 )
...
This reverts commit f4fba6d7110338caf3878cf42e26e17744108d00.
2019-02-20 11:18:12 -08:00
Matt Carroll
f4fba6d711
Android embedding refactor pr3 add remaining systemchannels ( #7874 )
2019-02-19 15:51:13 -08:00
Chris Bracken
163a2fd5e1
Revert "Android embedding refactor pr3 add remaining systemchannels ( #7738 )" ( #7849 )
...
From build log:
```
../../flutter/shell/platform/android/io/flutter/view/FlutterView.java:95: error: cannot find symbol
private final LocalizationChannel localizationChannel;
^
symbol: class LocalizationChannel
location: class FlutterView
../../flutter/shell/platform/android/io/flutter/view/FlutterView.java:172: error: cannot find symbol
localizationChannel = new LocalizationChannel(dartExecutor);
^
symbol: class LocalizationChannel
location: class FlutterView
2 errors
```
This reverts commit 256db4bc23b7931509233df0dc04e44e16608229.
2019-02-15 15:03:19 -08:00
Matt Carroll
256db4bc23
Android embedding refactor pr3 add remaining systemchannels ( #7738 )
2019-02-15 13:45:24 -08:00
Todd Volkert
02d7ca31d8
Don't call static method from instance variable ( #7841 )
2019-02-15 16:18:02 -05:00
Amir Hardon
10cee612bb
Delete GL textures when they are released from the texture registry. ( #7836 )
...
On Android we were never deleting the textures allocated for
the texture registry, which resulted in a memory leak, see:
https://github.com/flutter/flutter/issues/24145
2019-02-15 13:11:49 -08:00
najeira
69e4606077
Fix NullPointerException in SurfaceTextureRegistryEntry ( #7837 )
2019-02-15 13:01:41 -08:00
Matt Carroll
4663d357a3
Recommended implementation of combining characters implementation. ( #7758 )
2019-02-11 15:27:55 -08:00
Jason Simmons
694300d325
Provide a default pressure range if a MotionEvent does not have a device ( #7737 )
...
Fixes https://github.com/flutter/flutter/issues/27641
2019-02-11 09:29:07 -08:00
Matt Carroll
211adeac3a
Introduced a number of Java system channels in io/flutter/embedding/engine/systemchannels/ ( #7500 )
2019-02-06 17:07:30 -08:00
Matt Carroll
cc27cafb84
Implemented Dark Mode for Android ( #25525 ) ( #7488 )
2019-02-04 19:30:15 -08:00
jslavitz
c57e66fdae
fixes android pressure range ( #7516 )
2019-01-22 15:09:02 -08:00
Greg Spencer
918b28dbe1
Add hover event support to the engine ( #6961 )
...
This adds support for passing ACTION_HOVER_MOVE events to the framework, in preparation for supporting mouse hover events on Android and ChromeOS.
2019-01-14 16:15:20 -08:00
matthew-carroll
6b85ed3d93
Android embedding refactor PR1: JNI Extraction to FlutterJNI.java ( #7098 )
...
Android embedding refactor: JNI Extraction to FlutterJNI.java
2018-12-21 01:07:04 -05:00
Jason Simmons
41222d0555
Update usage of some Android APIs that are deprecated in API level 28 ( #7261 )
2018-12-19 17:39:53 -08:00
Todd Volkert
f79f7f6312
Allow inferred types using diamond syntax ( #7237 )
2018-12-17 16:35:10 -08:00
liyuqian
2bd75ae8ba
Support querying display refresh rate in engine ( #7002 )
...
The current implementation only deals with Android devices and we'll add iOS devices support soon.
2018-12-12 10:28:44 -08:00
Dan Field
114d33d3ca
Set and unset accessibility flags even when re-entrant ( #6853 )
...
* Make sure to not unset a11y flags on reentrant calls to API
2018-11-13 23:54:45 -08:00
Michael Goderbauer
70a1106b50
Unify copyright lines ( #6757 )
2018-11-07 12:24:35 -08:00
Todd Volkert
4cdddbac42
Fix String comparison as if Java were Dart. ( #6781 )
...
This also removes unused imports and sorts imports correctly
2018-11-07 09:59:51 -08:00
Stanislav Baranov
b5758d0d38
Propagate positions of secondary pointers in UP events on Android ( #6716 )
2018-11-02 10:51:35 -07:00
Stanislav Baranov
dd791f36ac
Propagate pointer size from Android MotionEvent ( #6662 )
2018-10-26 09:39:10 -07:00
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