Skip to content
Commit 64fdc5c5 authored by Fabian Kozynski's avatar Fabian Kozynski
Browse files

Add panel using TaskView

Adds support for panel view. Controls that have favorites should migrate
seamlessly to Panels (see SelectionItem#matches). A couple notes:

* Apps with panels will not participate in seeding
* If there is at least one app with panel, we show that instead of
  initial view.
* If there is at least one app with panel, we don't open the app picker
  from the tile.
* We save the last selection immediately so selectedItem is always in
  sync with SharedPreferences.
* If we are seeing a panel, the overflow menu doesn't show Edit, and Add
  directs to the app picker.
* The panel is shown inside a Red rectangle. This is temporary for
  debugging purposes.
* Apps with panels are not shown in the Provider selector activity

Note that if the flag (2000), no ControlsServiceInfo will have a panel
component, and therefore there will be no panels, so we default to old
behavior

Test: manual
Test: atest com.android.systemui.controls.ui
Test: disable flag and see that everything behaves correctly, including
scroll view
Test: atest AppAdapterTest
Fixes: 243392556

Change-Id: If260e193e57bec8948581dd4b0fa2f29e610c866
parent 82587b1a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment