Skip to content

Commit

Permalink
Make status bar icons visible when using Light theme
Browse files Browse the repository at this point in the history
Signed-off-by: saulhdev <[email protected]>
  • Loading branch information
saulhdev committed Aug 18, 2024
1 parent 50a880a commit 6ef886d
Showing 1 changed file with 3 additions and 29 deletions.
32 changes: 3 additions & 29 deletions app/src/main/java/com/saulhdev/feeder/overlay/OverlayView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -181,28 +181,6 @@ class OverlayView(val context: Context) :
)
}
}
/*
"import" -> {
scope.launch {
val intent = MainActivity.createIntent(context,"","import")
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
val activity = getActivity(context.applicationContext)
if(activity!=null)
MainActivity.startActivityForResult(activity, intent)
}
}
"export" -> {
scope.launch {
val intent = MainActivity.createIntent(context,"","export")
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
val activity = getActivity(context.applicationContext)
if(activity!=null)
MainActivity.startActivityForResult(activity, intent)
}
}
*/

"reload" -> {
refreshNotifications()
Expand All @@ -225,8 +203,6 @@ class OverlayView(val context: Context) :
private fun createMenuList(): List<MenuItem> {
return listOf(
MenuItem(R.drawable.ic_arrow_clockwise, R.string.action_reload, 0, "reload"),
//MenuItem(R.drawable.ic_cloud_arrow_down, R.string.sources_import_opml, 1, "import"),
//MenuItem(R.drawable.ic_cloud_arrow_up, R.string.sources_export_opml, 1, "export"),
MenuItem(R.drawable.ic_gear, R.string.title_settings, 2, "config"),
MenuItem(R.drawable.ic_power, R.string.action_restart, 2, "restart")
)
Expand All @@ -247,6 +223,9 @@ class OverlayView(val context: Context) :
initRecyclerView()
initHeader()
refreshNotifications()

window.decorView.setLightFlags()

syncScope.launch {
repository.getFeedArticles()
.mapLatest { articles ->
Expand Down Expand Up @@ -321,11 +300,6 @@ class OverlayView(val context: Context) :
themeHolder.prefs.overlayTransparency.setValue(value)
}

/*override fun applyNewCardBg(value: String) {
themeHolder.cardBgPref = value
updateTheme()
}*/

override fun applyCompactCard(value: Boolean) {
adapter = FeedAdapter()
adapter.setTheme(themeHolder.currentTheme)
Expand Down

0 comments on commit 6ef886d

Please sign in to comment.