feat: live lyrics from notification title, fix topbar overlap
This commit is contained in:
@@ -51,9 +51,11 @@ class MainActivity : Activity() {
|
||||
// Placeholder manifest/catalog URLs; replace with the real server on device
|
||||
private const val MANIFEST_URL = "https://example.com/hearth/manifest.json"
|
||||
private const val CATALOG_URL = "https://example.com/hearth/catalog.json"
|
||||
// 内容 WebView 顶栏预留高度(dp)
|
||||
// Topbar reserved height for content WebViews (dp)
|
||||
private const val TOPBAR_HEIGHT_DP = 44
|
||||
// 内容 WebView 顶栏预留高度(dp):H5 顶栏 top 12px + 按钮 30px + padding,约 54dp,
|
||||
// 取 56dp 留余量,避免内容 WebView 覆盖顶栏
|
||||
// Topbar reserved height (dp): H5 topbar top 12px + button 30px + padding ≈ 54dp;
|
||||
// use 56dp with margin so the content WebView doesn't cover the topbar
|
||||
private const val TOPBAR_HEIGHT_DP = 56
|
||||
// 全局侧边栏收起宽度(dp),内容 WebView 左侧预留,避免挡住侧边栏
|
||||
// Global sidebar collapsed width (dp); content WebViews reserve it on the
|
||||
// left to avoid covering the sidebar
|
||||
|
||||
Reference in New Issue
Block a user