ui fix
This commit is contained in:
parent
77f4a25a32
commit
b3c1953a3b
3 changed files with 5 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
||||||
<option name="testRunner" value="GRADLE" />
|
<option name="testRunner" value="GRADLE" />
|
||||||
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
||||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||||
|
<option name="gradleJvm" value="Embedded JDK" />
|
||||||
<option name="modules">
|
<option name="modules">
|
||||||
<set>
|
<set>
|
||||||
<option value="$PROJECT_DIR$" />
|
<option value="$PROJECT_DIR$" />
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
</map>
|
</map>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="Android Studio default JDK" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
|
|
@ -261,6 +261,7 @@ public class VideoPlayer extends AppCompatActivity {
|
||||||
// Set the IMMERSIVE flag.
|
// Set the IMMERSIVE flag.
|
||||||
// Set the content to appear under the system bars so that the content
|
// Set the content to appear under the system bars so that the content
|
||||||
// doesn't resize when the system bars hide and show.
|
// doesn't resize when the system bars hide and show.
|
||||||
|
Objects.requireNonNull(getSupportActionBar()).hide();
|
||||||
View decorView = getWindow().getDecorView();
|
View decorView = getWindow().getDecorView();
|
||||||
decorView.setSystemUiVisibility(
|
decorView.setSystemUiVisibility(
|
||||||
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
|
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
|
||||||
|
@ -275,6 +276,7 @@ public class VideoPlayer extends AppCompatActivity {
|
||||||
View decorView = getWindow().getDecorView();
|
View decorView = getWindow().getDecorView();
|
||||||
decorView.setSystemUiVisibility(
|
decorView.setSystemUiVisibility(
|
||||||
View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
|
View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
|
||||||
|
Objects.requireNonNull(getSupportActionBar()).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -348,6 +350,7 @@ public class VideoPlayer extends AppCompatActivity {
|
||||||
if (!playerView.getUseController()) {
|
if (!playerView.getUseController()) {
|
||||||
playerView.setUseController(true);
|
playerView.setUseController(true);
|
||||||
}
|
}
|
||||||
|
hideSystemBars();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onUserLeaveHint() {
|
public void onUserLeaveHint() {
|
||||||
|
|
Loading…
Reference in a new issue