mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 19:36:25 +08:00
android: Remove keeping the screen on in debug mode
This commit is contained in:
@ -47,13 +47,4 @@ public class MainActivity extends FlutterActivity implements MethodCallHandler {
|
|||||||
|
|
||||||
result.notImplemented();
|
result.notImplemented();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onResume() {
|
|
||||||
super.onResume();
|
|
||||||
if (BuildConfig.DEBUG) {
|
|
||||||
Log.d("SCREEN", "Keeping screen in debug mode");
|
|
||||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user