Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ app/.externalNativeBuild/
.cxx/

# agent files
.hermes/
AGENTS.md
CLAUDE.md
.githooks/
Expand Down
14 changes: 7 additions & 7 deletions app/src/main/java/com/papi/nova/AppView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import com.papi.nova.profiles.ProfilesManager
import com.papi.nova.runtime.NovaRuntimeTasks
import com.papi.nova.ui.AdapterFragment
import com.papi.nova.ui.AdapterFragmentCallbacks
import com.papi.nova.ui.NovaSheetChrome
import com.papi.nova.ui.NovaThemeManager
import com.papi.nova.utils.CacheHelper
import com.papi.nova.utils.Dialog
Expand Down Expand Up @@ -732,8 +733,11 @@ class AppView : AppCompatActivity(), AdapterFragmentCallbacks {
private fun showAppBottomSheet(selectedApp: AppObject) {
val sheet = BottomSheetDialog(this, R.style.NovaBottomSheet)
sheet.setContentView(R.layout.nova_app_context_sheet)
sheet.behavior.state = BottomSheetBehavior.STATE_EXPANDED
sheet.behavior.skipCollapsed = true
val sheetRoot = sheet.findViewById<View>(R.id.nova_sheet_root)
sheet.setOnShowListener {
NovaSheetChrome.applyBottomSheetChrome(sheet, sheetRoot)
sheet.findViewById<TextView>(R.id.sheet_app_name)?.let(NovaSheetChrome::styleSheetTitle)
}

val titleView = sheet.findViewById<TextView>(R.id.sheet_app_name)
titleView?.text = selectedApp.app.appName
Expand Down Expand Up @@ -869,16 +873,12 @@ class AppView : AppCompatActivity(), AdapterFragmentCallbacks {
val item = TextView(this)
item.text = label
item.textSize = 15f
item.setTextColor(ContextCompat.getColor(this, R.color.nova_text_primary))
NovaSheetChrome.styleSheetAction(item)
item.typeface = android.graphics.Typeface.create("sans-serif", android.graphics.Typeface.NORMAL)
val pad = UiHelper.dpToPx(this, 24f).toInt()
val padV = UiHelper.dpToPx(this, 14f).toInt()
item.setPadding(pad, padV, pad, padV)

val outValue = android.util.TypedValue()
theme.resolveAttribute(android.R.attr.selectableItemBackground, outValue, true)
item.setBackgroundResource(outValue.resourceId)

item.setOnClickListener { action.run() }
container.addView(item)
}
Expand Down
Loading
Loading