- 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:name=".activity.LoginActivity"
android:label="@string/title_activity_login" /> android:label="@string/title_activity_login" />
<activity <activity
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize|uiMode"
android:launchMode="singleTop"
android:name=".activity.VideoPlayActivity" android:name=".activity.VideoPlayActivity"
android:label="@string/title_activity_video_play" android:label="@string/title_activity_video_play"
android:theme="@style/AppTheme" /> android:theme="@style/AppTheme" />

View File

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

View File

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