Commit Graph

6 Commits

Author SHA1 Message Date
Liam Clark
e9b4b84dae Replace ActivityInstanceInfo api with in app lifecycle event tracking
Since adding a public api for the playground app was problematic,
we now keep track of onResume and onDestroy calls globally inside the
app. This fixes a few bugs in cases where tasks would be hidden from the
ActivityManger#.getAppTasks() method and allows us to listen for changes
allowing us to do without a periodic refresh of the UI.

Test: Manual

Change-Id: Idb834cbdc7aad6442dd962c95b5321e1d75695fe
2019-01-17 15:38:10 -08:00
Liam Clark
fb526d038f Rebind task navigation buttons
Test: Manual
Change-Id: Ia83cd9074152be8f5a1e2f6e00cac30c5109ada6
2019-01-16 13:16:21 -08:00
Liam Clark
1ca6b6ec7d Put the launch form behind a FAB
This greatly reduces the amount of scrolling needed to switch between
the overview-view and the launch-view. When launching the next activity
the launch view is dismissed and the user return to the overview-view
if they press back.

Test: Manual
Change-Id: I051ba98b29d666cf56753feebfaa87d2e181a3ab
2018-12-03 13:41:53 -08:00
Liam Clark
f63bc32ae7 Make tree fragment's expandable current view expand by default
This gives the user a clearer overview of the current state of the
application, without having to expand all the tasks.

Padding has been reduced to better utilize available screen space.

The bring to front and remove buttons are currently always hidden.

Test: Manual
Change-Id: Ifcda0ff31fd5adb89a12ff6a024842c0e7a7ab29
2018-12-03 11:48:48 -08:00
Liam Clark
53ee6bc2bf Move from support appcompat to androidx appcompat
Test: Manual
Change-Id: Id9af2504b557d3dd6a2d84786316497cff53d9a3
2018-11-27 09:16:50 -08:00
Liam Clark
bd43fbe931 Intent Playground sample application
The app allows a user to explore the behaviour of different
launch modes, task affinities and intent flags.

It displays the current state of all tasks in the application
and their corresponding flags.

It allows the user to launch a set amount of activities on launch.
This bring the user directly into a state where many options for
exploration are available, rather than having to go through a
complicated setup first.

Access the activity field of RecentTaskInfo using reflection and mirror
the ActivityInstanceInfo into our own value object. This breaks
the compile time dependency on the ActivityInstanceInfo api and turns
it into a runtime dependency.

If the api is missing on the device we can still show the task structure
and log an error with the missing activity instance info.

Known bug: The enable suggestion button crashes the application.
Test: Build and Run

Change-Id: Id0274bae159c16aee6dccd805deb53851ffcf21d
2018-11-26 11:37:35 -08:00