Commit 2a19a0d3 authored by Hussein's avatar Hussein

Merge branch 'feature/P4A-924' into develop

parents 47d475d9 af00d97f
......@@ -32,6 +32,8 @@ import butterknife.OnClick;
import butterknife.OnEditorAction;
import butterknife.OnTextChanged;
import static android.view.View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR;
import static android.view.WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS;
public abstract class K9Activity extends AppCompatActivity implements K9ActivityMagic {
......@@ -47,6 +49,12 @@ public abstract class K9Activity extends AppCompatActivity implements K9Activity
@Override
public void onCreate(Bundle savedInstanceState) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
getWindow().getDecorView().setSystemUiVisibility(
FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS | SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
);
}
mBase = K9ActivityCommon.newInstance(this);
super.onCreate(savedInstanceState);
// ((K9) getApplication()).pEpSyncProvider.setSyncHandshakeCallback(this);
......
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.K9.Light.NoActionBar" parent="Theme.K9.Light">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="windowActionModeOverlay">true</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
</style>
</resources>
\ No newline at end of file
......@@ -235,6 +235,7 @@
</style>
<style name="SplashTheme" parent="Theme.AppCompat.NoActionBar">
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:windowBackground">@drawable/background_splash</item>
</style>
......
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