mirror of
https://github.com/FatttSnake/OxygenToolbox.git
synced 2026-04-06 07:01:26 +08:00
Fix the bug that the horizontal and vertical screen switching is stuck.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user