- fix video top on rotation

This commit is contained in:
Stefan Schueller 2018-07-01 16:44:19 +02:00
parent c14ac5d173
commit 9794de71de
3 changed files with 4 additions and 6 deletions

View File

@ -27,6 +27,8 @@
android:name=".activity.LoginActivity"
android:label="@string/title_activity_login" />
<activity
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize|uiMode"
android:launchMode="singleTop"
android:name=".activity.VideoPlayActivity"
android:label="@string/title_activity_video_play"
android:theme="@style/AppTheme" />

View File

@ -61,7 +61,7 @@ public class VideoPlayActivity extends AppCompatActivity implements VideoRendere
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_torrent_video_play);
setContentView(R.layout.activity_video_play);
// get video ID
Intent intent = getIntent();

View File

@ -21,11 +21,7 @@
app:layout_constraintDimensionRatio="H,3:1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
>
</com.google.android.exoplayer2.ui.PlayerView>
app:layout_constraintTop_toTopOf="parent" />
<ProgressBar
android:id="@+id/progress"