Commit Graph

9 Commits

Author SHA1 Message Date
wilsonshih
a46f0248c4 Provide a sample of multi-display wallpaper.
Some key events to build a wallpaper which can support
multiple display.
- The rendering or event handler of each engine must be
independent.
- Set supportsMultipleDisplays attribute to true.
- Use Engine#getDisplayContext to load resource if
needed.

Bug: 129696884
Test: launch wallpaper and check on multi display.
Change-Id: I3c60caba921e0af3d5f681ed318a543328e3375a
2019-04-18 18:22:05 +08:00
wilsonshih
1f1a32f57e Fix MDLauncher crash when started.
MDLauncher crash after change material source.
Change theme parent to fix it.

Bug: 130151609
Test: Manual
Change-Id: Iccc68c71953e042a4b5462ab7f900e99e94cf3e7
2019-04-09 20:42:34 +08:00
Chilun
38f18b8837 Hide keyboard while the home button get pressed
For multi-client IME, launcher need to call hideSoftInputFromWindow() by
using the InputMethodManager instance that mapped the presented display
while its home button get pressed.

Bug: 120114697
Test: Manual verified that multi-client IME can be closed correctly.
Change-Id: I2edaa12d2e9c68d0e6dae5ca45f23abd9ab47acd
2019-03-19 18:26:50 +08:00
Aurimas Liutikas
a955aae5ab Migrate away from temporary androidx.design_design target.
androidx.design_design was a target created temporarily while
the com.google.android.material_material was being added.
This migrated to the final material design class packages.

Test: make -j IntentPlayground MultiDisplay
Change-Id: I0e9dabb222e19530c3a558cf4fce4d54e81f8e47
2019-01-30 22:40:04 -08:00
Chilun
65f0ccfed7 Support secondary displays
Add category SECONDARY_HOME.

Bug: 118206886
Bug: 111363427
Test: Manual
Change-Id: I6c8fb0f1bdd905fafab357eb3b444e8db34f2bae
2018-12-06 21:22:02 +08:00
Riddle Hsu
ff3874d082 Allow to launch activity without specifying display id
- Add a dropdown item to not set launch display id.
- Default don't set launch display id.

In general use cases, activity should be launched on the
display where the caller resides.

Bug: 112451761
Test: Create a virtual display with system decoration support,
      launch an activity from shortcut and check if the activity
      runs on the same display.

Change-Id: Iab2fd21402c7aa0e245ebfeb3698aaa22cb30e18
2018-11-28 10:27:05 +08:00
Charles Chen
24c88f07ae Make MD Launcher start a new task when launching app by default
We want to make MD launcher have the similar behaviors as other
launchers, which is start a new task by default.

Fixes: 119634726
Test: Manual - launch EditTextVariation and click home button
Change-Id: I862557c1ac41ce4d259ebe45394eb503065e1fa0
2018-11-19 13:14:03 +00:00
Andrii Kulian
91ca37c380 Update MD Launcher for large/external screens
- Added support for multiple launcher activity instances.
- Launcher now shows default wallpaper as background.
- The activity now expands behind system decor windows.
- App drawer can be invoked by clicking on FAB.
- Apps can be pinned on the screen.
- Wallpaper setting flow can be started from launcher.
- UI is optimized for large and xlarge screens.
- Launching a new instance is now optional.
- Other minor UI tweaks.

Bug: 116684201
Bug: 112452592
Bug: 112451761
Test: Manual
Change-Id: I52b5efa4362eab7fcaa5d23923329b68b1783847
2018-10-19 16:33:00 -07:00
Andrii Kulian
9048eea32c MultiDisplay launcher sample
Demo launcher that allows starting activities on secondary displays.

Test: Manual
Change-Id: I9d6652b81fc928767d47f94a6ac5bc9de0fb8f37
2018-07-31 21:58:46 +08:00