mirror of
https://github.com/FatttSnake/OxygenToolbox.git
synced 2026-04-06 02:41:28 +08:00
Fix the bug that the horizontal and vertical screen switching is stuck.
This commit is contained in:
@@ -39,10 +39,9 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".tools.timescreen.MainActivity"
|
android:name=".tools.timescreen.MainActivity"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:theme="@style/Theme.OxygenToolbox.Default"
|
android:theme="@style/Theme.OxygenToolbox.Default">
|
||||||
android:screenOrientation="sensorLandscape">
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="activity.timescreen" />
|
<action android:name="oxygentoolbox.timescreen" />
|
||||||
|
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.fatapp.oxygentoolbox.tools.timescreen;
|
package com.fatapp.oxygentoolbox.tools.timescreen;
|
||||||
|
|
||||||
import android.animation.ObjectAnimator;
|
import android.animation.ObjectAnimator;
|
||||||
|
import android.content.pm.ActivityInfo;
|
||||||
import android.content.res.Configuration;
|
import android.content.res.Configuration;
|
||||||
import android.graphics.Typeface;
|
import android.graphics.Typeface;
|
||||||
import android.graphics.drawable.AnimatedVectorDrawable;
|
import android.graphics.drawable.AnimatedVectorDrawable;
|
||||||
@@ -70,6 +71,7 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
BangScreenTools.getBangScreenTools().fullscreen(getWindow(), this);
|
BangScreenTools.getBangScreenTools().fullscreen(getWindow(), this);
|
||||||
|
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_tool_time_screen);
|
setContentView(R.layout.activity_tool_time_screen);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user