Skip to content

Commit

Permalink
Bump build
Browse files Browse the repository at this point in the history
  • Loading branch information
levinli303 committed Aug 20, 2022
1 parent 3d5d37b commit b13ee88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="auto"
android:versionCode="286"
android:versionCode="287"
android:versionName="1.5.11">

<uses-feature android:glEsVersion="0x00020000" android:required="true" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,21 @@ import space.celestia.mobilecelestia.common.CommonTextViewHolder
import space.celestia.mobilecelestia.common.RecyclerViewItem
import space.celestia.mobilecelestia.common.SeparatorHeaderRecyclerViewAdapter
import space.celestia.celestia.BrowserItem
import space.celestia.mobilecelestia.utils.CelestiaString

fun BrowserItem.createSection(): List<CommonSectionV2> {
val list = ArrayList<CommonSectionV2>()

var hasMainObject = false
if (`object` != null) {
val section = CommonSectionV2(listOf( BrowserUIItem(this, true) ))
list.add(section)
hasMainObject = true
}
val childItems = children.map { BrowserUIItem(it, it.children.size == 0) }
if (childItems.isNotEmpty()) {
list.add(CommonSectionV2(header = if (hasMainObject) CelestiaString("Subsystem", "") else null, items = childItems))
}
list.add(CommonSectionV2(children.map { BrowserUIItem(it, it.children.size == 0) }))
return list
}

Expand Down

0 comments on commit b13ee88

Please sign in to comment.