From db81ede04a7309962b1328119448612df6d34c2c Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Wed, 4 May 2022 18:40:29 +0200 Subject: [PATCH] fix login webview title color with light theme (#2497) --- .../tusky/components/login/LoginWebViewActivity.kt | 4 ++-- .../layout/{login_webview.xml => activity_login_webview.xml} | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) rename app/src/main/res/layout/{login_webview.xml => activity_login_webview.xml} (88%) diff --git a/app/src/main/java/com/keylesspalace/tusky/components/login/LoginWebViewActivity.kt b/app/src/main/java/com/keylesspalace/tusky/components/login/LoginWebViewActivity.kt index a32a164c4..2ed38720b 100644 --- a/app/src/main/java/com/keylesspalace/tusky/components/login/LoginWebViewActivity.kt +++ b/app/src/main/java/com/keylesspalace/tusky/components/login/LoginWebViewActivity.kt @@ -20,7 +20,7 @@ import androidx.core.net.toUri import com.keylesspalace.tusky.BaseActivity import com.keylesspalace.tusky.BuildConfig import com.keylesspalace.tusky.R -import com.keylesspalace.tusky.databinding.LoginWebviewBinding +import com.keylesspalace.tusky.databinding.ActivityLoginWebviewBinding import com.keylesspalace.tusky.di.Injectable import com.keylesspalace.tusky.util.hide import com.keylesspalace.tusky.util.viewBinding @@ -78,7 +78,7 @@ sealed class LoginResult : Parcelable { /** Activity to do Oauth process using WebView. */ class LoginWebViewActivity : BaseActivity(), Injectable { - private val binding by viewBinding(LoginWebviewBinding::inflate) + private val binding by viewBinding(ActivityLoginWebviewBinding::inflate) override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) diff --git a/app/src/main/res/layout/login_webview.xml b/app/src/main/res/layout/activity_login_webview.xml similarity index 88% rename from app/src/main/res/layout/login_webview.xml rename to app/src/main/res/layout/activity_login_webview.xml index 67d47d6f8..1630239ef 100644 --- a/app/src/main/res/layout/login_webview.xml +++ b/app/src/main/res/layout/activity_login_webview.xml @@ -11,8 +11,7 @@ + android:layout_height="wrap_content" />