Commit aa454b6c authored by Francisco Cunha's avatar Francisco Cunha Committed by Hussein

P4A-1015 - Theme.K9.Light.NoActionBar move to values-v27, wrong theme for WelcomeMessage

only after android 27 the buttons of the navigationBar adapt to the color
of the bar
parent 3ec9eb0a
......@@ -122,8 +122,7 @@
<activity
android:name="security.pEp.ui.intro.WelcomeMessage"
android:configChanges="locale"
android:label="@string/welcome_message_title"
android:theme="@style/Theme.AppCompat.Light.NoActionBar.FullScreen" />
android:label="@string/welcome_message_title" />
<activity
android:name=".activity.setup.FontSizeSettings"
android:configChanges="locale"
......
......@@ -50,7 +50,7 @@ public abstract class K9Activity extends AppCompatActivity implements K9Activity
@Override
public void onCreate(Bundle savedInstanceState) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1) {
getWindow().getDecorView().setSystemUiVisibility(
FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS | SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
);
......
......@@ -3,11 +3,13 @@ package security.pEp.ui.intro
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.text.Html
import android.view.LayoutInflater
import android.view.View
import android.view.View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
import android.view.ViewGroup
import android.view.WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS
import androidx.core.content.ContextCompat
import androidx.core.text.HtmlCompat
import androidx.fragment.app.Fragment
......@@ -40,7 +42,10 @@ class WelcomeMessage : AppIntro() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1) {
window.decorView.systemUiVisibility =
FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS or SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
}
addSlide(IntroFirstFragment())
addSlide(IntroSecondFragment())
addSlide(IntroThirdFragment())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment