mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-18 19:19:33 +01:00
rename method
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
c34260786a
commit
b648a6b32d
@ -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()
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user