Starting a new activity from full-screen mode causes the status bar to close the action bar

I am using ActionBarSherlock lib. I have a CameraActivity that has a style set to fullscreen:

<activity
   android:name="pl.toptof.android.ui.activity.CameraActivity"
   android:theme="@style/Theme.Styled.NoActionBar.fullScreen"
   android:screenOrientation="portrait">
</activity>

When I start a new activity from this view:

Intent intent = new Intent(CameraActivity.this, PreviewActivity.class);
intent.putExtra("PhotoURI",takenPhotoURL);
intent.putExtra("voteID",voteId);
CameraActivity.this.startActivity(intent);

The activity looks as if it remained in full screen mode, and the status bar is visible and closes the action bar. Preview Theme:

<application
        android:name="(...)"
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:hardwareAccelerated="true"
        android:theme="@style/Theme.Styled">

<activity
            android:name="pl.toptof.android.ui.activity.PreviewActivity"
            android:screenOrientation="portrait">
</activity>

The problem only appears on the Sony Xperia Z device. On HTC Legend, HTC One, Nexus 4, Samsung Galaxy S3, Nexus 7, Samsung Galaxy Note that it works great. And his screen:
status bar covers action bar

Any ideas how to fix this?

+4
1

. :

Intent intent = new Intent(CameraActivity.this, PreviewActivity.class);
intent.putExtra("PhotoURI",takenPhotoURL);
intent.putExtra("voteID",voteId);
CameraActivity.this.startActivity(intent);

getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);

startActivity. , , . / CameraActivity, FLAG_FULLSCREEN onCreate.

+2

All Articles