I have a normal Activity (A) with visible Action Bar which launches another fullscreen activity (B) to display photos. When (B) finishes and activity (A) is displayed back sometimes I can see the following picture:
Please note visual distortion of action bar and navigation areas. The above artifacts disappear only when I start interacting with the activity, scrolling it, etc.
Full screen activity code:
protected void onCreate(Bundle savedInstanceState) {
supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
super.onCreate(savedInstanceState);
ActionBar supportActionBar = getSupportActionBar();
supportActionBar.hide();
}
- No hints in AndroidManifest.xml are used.
- Support libraries are used (appcompat)
- Reproduced on Nexus 4, Android 5.0.1
The only style customization that I have:
<style name="Theme.MyApp" parent="@style/Theme.AppCompat" tools:ignore="NewApi">
<!-- Text appearance -->
<item name="android:textColorLink">@color/linkColor</item>
</style>
Does anybody know any clues why is that ?