rename method

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2025-06-12 16:44:14 +02:00
parent c34260786a
commit b648a6b32d
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ import com.nextcloud.talk.utils.adjustUIForAPILevel35
import com.nextcloud.talk.utils.bundle.BundleKeys
import com.nextcloud.talk.utils.database.user.CurrentUserProviderNew
import com.nextcloud.talk.utils.preferences.AppPreferences
import com.nextcloud.talk.utils.setStatusBarColor
import com.nextcloud.talk.utils.initStatusBar
import com.nextcloud.talk.utils.ssl.TrustManager
import org.greenrobot.eventbus.EventBus
import org.greenrobot.eventbus.Subscribe
@ -118,7 +118,7 @@ open class BaseActivity : AppCompatActivity() {
fun initSystemBars() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM) {
setStatusBarColor(ResourcesCompat.getColor(resources, R.color.bg_default, context.theme))
initStatusBar(ResourcesCompat.getColor(resources, R.color.bg_default, context.theme))
} else {
colorizeStatusBar()
colorizeNavigationBar()

View File

@ -29,7 +29,7 @@ fun AppCompatActivity.adjustUIForAPILevel35(
enableEdgeToEdge(statusBarStyle, navigationBarStyle)
}
fun AppCompatActivity.setStatusBarColor(@ColorInt color: Int) {
fun AppCompatActivity.initStatusBar(@ColorInt color: Int) {
window.decorView.setOnApplyWindowInsetsListener { view, insets ->
view.setBackgroundColor(color)