android: Remove keeping the screen on in debug mode

This commit is contained in:
Vishesh Handa
2020-01-25 13:48:58 +01:00
parent 74b244d125
commit 333b11de7d

View File

@ -47,13 +47,4 @@ public class MainActivity extends FlutterActivity implements MethodCallHandler {
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);
}
}
}