fix navigation color on start up

This commit is contained in:
fuwa
2019-11-17 05:22:47 +00:00
parent 1b0f7d3f51
commit ab958d95e1
2 changed files with 3 additions and 0 deletions
@@ -1,6 +1,7 @@
package org.wownero.cyberwow;
import android.os.Bundle;
import android.graphics.Color;
import io.flutter.app.FlutterActivity;
import io.flutter.plugins.GeneratedPluginRegistrant;
@@ -8,6 +9,7 @@ public class MainActivity extends FlutterActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().setNavigationBarColor(Color.BLACK);
GeneratedPluginRegistrant.registerWith(this);
}
}
@@ -4,5 +4,6 @@
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@android:color/black</item>
<item name="android:navigationBarColor">@android:color/black</item>
</style>
</resources>