xster
b22a8c69d9
Let FlutterActivity/Fragment/FragmentActivity have an app bundle path override instead of eager resolving during construction ( #20769 )
2020-09-03 17:31:30 -07:00
Gary Qian
15bf1bbf6f
[Android R] Integrate DisplayCutouts into viewportMetrics ( #20921 )
2020-09-02 05:18:35 -07:00
Emmanuel Garcia
49d6805324
Ensure all images are closed in FlutterImageView ( #20842 )
2020-09-01 16:57:45 -07:00
xster
5f49a95499
Add auto plugin registration to FlutterFragmentActivity as well ( #20865 )
2020-08-31 13:43:46 -07:00
Emmanuel Garcia
5e54c707e8
Reland: Enable hybrid composition by default on Android ( #20722 ) ( #20864 )
...
This reverts commit 4de62c7c2659607acdc75ab8c1ccd305a3c6f9d1.
2020-08-31 12:17:11 -07:00
xster
15f5696c41
Add a java injector for testing ( #20789 )
2020-08-29 22:29:23 -07:00
Greg Spencer
88fd13fcd3
Reland: Implement delayed event synthesis key event handling for Android ( #20736 )
...
This re-lands the key event synthesis implementation for Android (Original PR: #19024 , Revert PR: #19956 ). The only difference is sending the synthesized key events to the root view instead of the current view.
Without sending it to the root view, the system doesn't have any chance of handling keys like the back button. The event will still not be sent to the framework twice, since we turn off event propagation while re-dispatching the event.
2020-08-28 14:45:38 -07:00
Gary Qian
93f17e9ea6
Use Android R (API 30) getInsets() to compute padding ( #18339 )
2020-08-26 18:15:40 -07:00
Emmanuel Garcia
4de62c7c26
Revert "Enable hybrid composition by default on Android ( #20722 )" ( #20745 )
...
This reverts commit d16ba48e1d79cf0197e96c51c38300ee921baeb0.
2020-08-25 09:54:13 -07:00
Emmanuel Garcia
d16ba48e1d
Enable hybrid composition by default on Android ( #20722 )
2020-08-24 13:10:23 -07:00
Justin McCandless
33015c6c7a
hasStrings on Android ( #20393 )
...
hasStrings message for checking for pasteable clipboard contents without actually reading them, for iOS14 clipboard alerts.
2020-08-14 08:45:18 -07:00
Mehmet Fidanboylu
dd2c5a1b8b
Plumbing for setting domain network policy ( #20218 )
2020-08-13 07:26:43 -07:00
Emmanuel Garcia
18d286a6e4
Add FlutterFragmentActivity#getRenderMode() ( #20245 )
2020-08-07 18:41:01 -07:00
Greg Spencer
18200e7e8e
Revert "Implement delayed event synthesis key event handling for Android ( #19024 )" ( #19956 )
...
This reverts commit 8825f9178d884d07b43590ef52bb929ac9a3773f because it breaks flutter_gallery__back_button_memory and a customer test.
2020-07-22 12:36:26 -07:00
Greg Spencer
8825f9178d
Implement delayed event synthesis key event handling for Android ( #19024 )
...
This implements the design in flutter.dev/go/handling-synchronous-keyboard-events for Android.
I started with Android, but this will be used for all platforms as we add them.
The related framework PR is: flutter/flutter#59358 (which has already landed)
2020-07-17 11:03:19 -07:00
rekire
f21cd8aedf
Prevent that removeActivityResultListener() is causing an ConcurrentModificationException ( #19702 )
2020-07-15 17:59:08 -07:00
Michael Goderbauer
518fbd1652
Add flag to indicate whether the platform supports state restoration ( #19717 )
2020-07-14 11:01:25 -07:00
Gary Qian
8d241e4926
[Android] Prevent FlutterRenderer listener from calling JNI after detach ( #19558 )
2020-07-13 06:29:30 -07:00
Emmanuel Garcia
d1f3037c4c
Switch to FlutterSurfaceView if no Android view is in the frame ( #19487 )
2020-07-06 14:51:46 -07:00
Chris Yang
cc9ccf98ae
Implement mutator stack on Android hybrid composition platform view ( #19426 )
2020-07-04 13:03:04 -07:00
Emmanuel Garcia
c332675a8c
Fix hybrid composition bugs ( #19325 )
2020-06-26 12:33:02 -07:00
Gary Qian
559d93d978
Android native locale resolution algorithm ( #19266 )
2020-06-26 02:48:33 -07:00
Maurice Parrish
1913040ebe
Creates a new RenderMode for FlutterView ( #19143 )
2020-06-22 14:40:00 -07:00
cg021
2c60d87c39
createOverlaySurface JNI method ( #19076 )
...
* createOverlaySurface JNI
* update imports
* remove unused method
* license
* deleted unused file
* remove wrong function call
* removed duplicate createOverlaySurface
2020-06-17 15:21:41 -05:00
Emmanuel Garcia
99442c6c18
Revert add createOverlaySurface JNI #19040 ( #19075 )
2020-06-16 14:06:15 -07:00
Gary Qian
3a96741247
Platform resolved locale and Android localization refactor ( #18645 )
2020-06-16 04:29:50 -07:00
cg021
de063512c5
Add createOverlaySurface JNI ( #19040 )
2020-06-15 19:49:29 -07:00
Michael Goderbauer
f7d241fd8a
Wire up channel for restoration data ( #18042 )
2020-06-12 16:31:25 -07:00
Dan Field
983b6e198d
Call Shell::NotifyLowMemory when backgrounded/memory pressure occurs on Android ( #19026 )
...
* Reland "Call Shell::NotifyLowMemoryWarning on Android Trim and LowMemory events (#18979 )" (#19023 )"
This reverts commit 0a852d8ad7e0b132d86c0a604f2c41a110f2b3b6.
2020-06-12 15:12:25 -07:00
cg021
7cb7003a11
onEndFrame JNI ( #18867 )
...
* onEndFrame JNI
* beginFrame brief change
2020-06-12 16:21:25 -05:00
Emmanuel Garcia
0a852d8ad7
Revert "Call Shell::NotifyLowMemoryWarning on Android Trim and LowMemory events ( #18979 )" ( #19023 )
...
This reverts commit f5ab179e7a793e2bd5d087d59911e99f8b45e6c9.
2020-06-12 12:31:12 -07:00
cg021
ac809b48cb
onBeginFrame JNI ( #18866 )
2020-06-11 17:15:03 -07:00
Dan Field
f5ab179e7a
Call Shell::NotifyLowMemoryWarning on Android Trim and LowMemory events ( #18979 )
2020-06-10 17:18:17 -07:00
cg021
82e188d10b
Add onDisplayOverlaySurface JNI ( #18859 )
2020-06-09 17:07:53 -07:00
cg021
773ac97453
onDisplayPlatformView JNI ( #18828 )
...
* missing imports
* onDisplayPlatformView JNI
* imports
* ran ./ci/format.sh | patch -p0
* missing imports
* onDisplayPlatformView JNI
* imports
* ran ./ci/format.sh | patch -p0
* missing imports
* ran ./ci/format.sh | patch -p0
2020-06-08 16:14:39 -05:00
xster
5edd766628
Fix intent builder visibility ( #18875 )
2020-06-08 12:08:04 -07:00
Emmanuel Garcia
fdc457d342
Revert "onDisplayPlatformView JNI ( #18786 )" ( #18826 )
...
This reverts commit c8ab763f79269bf275644cfaa72edeba1c4b0898.
2020-06-04 09:42:51 -07:00
cg021
c8ab763f79
onDisplayPlatformView JNI ( #18786 )
...
* onDisplayPlatformView JNI
* format
* add todo in onDisplayPlatformView
Co-authored-by: Emmanuel Garcia <egarciad@google.com>
* move methods
* add platformViewsController setter
* remove unnecessary calls
* remove override and add unit test
* remove override
* test
* mockito
* fix formatting
Co-authored-by: Emmanuel Garcia <egarciad@google.com>
2020-06-04 11:20:45 -05:00
Tong Mu
b3e7732cf9
System mouse cursor: Android ( #18569 )
...
Adds system mouse cursor to the Android engine.
2020-06-01 18:08:43 -07:00
xster
33ea63fbbd
Move robolectric tests to sdk 28 ( #18525 )
2020-05-20 09:19:35 -07:00
Gary Qian
e9f1efa280
Add fullscreen padding workarounds to v2 android embedding ( #18193 )
2020-05-09 04:31:27 -07:00
xster
40167b68ed
Make robolectric tests run against SDK 29 by default ( #17996 )
2020-05-07 23:29:02 -07:00
xster
45e6cfd1ff
remove top padding when system UI in fullscreen mode ( #17985 )
2020-04-28 12:21:37 -07:00
Jason Simmons
f9e53c72c6
Unregister the TextInputChannel method handler when the TextInputPlugin is destroyed ( #17646 )
...
Fixes https://github.com/flutter/flutter/issues/54275
2020-04-17 14:25:34 -07:00
Shi-Hao Hong
63f40903de
Revert getSystemGestureExclusionRects and setSystemGestureExclusionRects ( #17613 )
...
* Revert getSystemGestureExclusionRects and setSystemGestureExclusionRects
* Remove references to removed PlatformChannelTest.java file
2020-04-09 20:44:37 -07:00
Jason Simmons
288b66b1b6
Disconnect from platform views and virtual displays before detaching from the engine ( #17379 )
2020-04-02 18:16:05 -07:00
Dan Field
2e909652ac
Fix bad texture view config ( #17486 )
2020-04-02 15:06:03 -07:00
Emmanuel Garcia
025e2d82dd
Migrate embedding to AndroidX ( #17075 )
2020-03-13 21:19:24 -07:00
Matt Carroll
f39bc73d6a
Exposes FlutterSurfaceView, and FlutterTextureView to FlutterActivity and FlutterFragment. ( #41984 , #47557 ) ( #16552 )
2020-02-12 19:21:00 -08:00
Michael Klimushyn
077918dcfd
Apply Google Java format ( #16501 )
...
This shouldn't result in any logical changes. I've done a quick smoke
test by building a local Android engine and running Flutter gallery, no
compile errors or other obvious issues.
Applied by running `/ci/format.sh | patch -p0` with the altered script
added in flutter/engine#16500 . I did locally modify the script slightly
further so it would run against all Java files in the repo instead of
just modified ones.
2020-02-07 16:10:46 -08:00