Fix the bug that the horizontal and vertical screen switching is stuck.

This commit is contained in:
2022-08-12 01:24:00 +08:00
parent bcf21338f1
commit be0314c072
2 changed files with 4 additions and 3 deletions

View File

@@ -39,10 +39,9 @@
<activity
android:name=".tools.timescreen.MainActivity"
android:exported="false"
android:theme="@style/Theme.OxygenToolbox.Default"
android:screenOrientation="sensorLandscape">
android:theme="@style/Theme.OxygenToolbox.Default">
<intent-filter>
<action android:name="activity.timescreen" />
<action android:name="oxygentoolbox.timescreen" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

View File

@@ -1,6 +1,7 @@
package com.fatapp.oxygentoolbox.tools.timescreen;
import android.animation.ObjectAnimator;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.graphics.Typeface;
import android.graphics.drawable.AnimatedVectorDrawable;
@@ -70,6 +71,7 @@ public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
BangScreenTools.getBangScreenTools().fullscreen(getWindow(), this);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_tool_time_screen);