mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 03:29:28 +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.bundle.BundleKeys
|
||||||
import com.nextcloud.talk.utils.database.user.CurrentUserProviderNew
|
import com.nextcloud.talk.utils.database.user.CurrentUserProviderNew
|
||||||
import com.nextcloud.talk.utils.preferences.AppPreferences
|
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 com.nextcloud.talk.utils.ssl.TrustManager
|
||||||
import org.greenrobot.eventbus.EventBus
|
import org.greenrobot.eventbus.EventBus
|
||||||
import org.greenrobot.eventbus.Subscribe
|
import org.greenrobot.eventbus.Subscribe
|
||||||
@ -118,7 +118,7 @@ open class BaseActivity : AppCompatActivity() {
|
|||||||
|
|
||||||
fun initSystemBars() {
|
fun initSystemBars() {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM) {
|
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 {
|
} else {
|
||||||
colorizeStatusBar()
|
colorizeStatusBar()
|
||||||
colorizeNavigationBar()
|
colorizeNavigationBar()
|
||||||
|
@ -29,7 +29,7 @@ fun AppCompatActivity.adjustUIForAPILevel35(
|
|||||||
enableEdgeToEdge(statusBarStyle, navigationBarStyle)
|
enableEdgeToEdge(statusBarStyle, navigationBarStyle)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun AppCompatActivity.setStatusBarColor(@ColorInt color: Int) {
|
fun AppCompatActivity.initStatusBar(@ColorInt color: Int) {
|
||||||
window.decorView.setOnApplyWindowInsetsListener { view, insets ->
|
window.decorView.setOnApplyWindowInsetsListener { view, insets ->
|
||||||
view.setBackgroundColor(color)
|
view.setBackgroundColor(color)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user