- fix video top on rotation
This commit is contained in:
parent
c14ac5d173
commit
9794de71de
@ -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" />
|
||||
|
@ -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();
|
||||
|
@ -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"
|
Loading…
Reference in New Issue
Block a user