Sort entity list and add debug resources for wear app (#1778)

This commit is contained in:
Daniel Shokouhi 2021-10-13 17:55:37 -07:00 committed by GitHub
parent 243833ab33
commit 4893a293bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 31 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@android:color/holo_red_dark"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@android:color/holo_red_dark"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -69,8 +69,8 @@ class HomePresenterImpl @Inject constructor(
}
private fun processEntities(entities: Array<Entity<Any>>) {
val scenes = entities.filter { it.entityId.split(".")[0] == "scene" }
val scripts = entities.filter { it.entityId.split(".")[0] == "script" }
val scenes = entities.sortedBy { it.entityId }.filter { it.entityId.split(".")[0] == "scene" }
val scripts = entities.sortedBy { it.entityId }.filter { it.entityId.split(".")[0] == "script" }
view.showHomeList(scenes, scripts)
}