Closed jones139 closed 5 months ago
Found it now. It is
// Force the screen to stay on when the app is running getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
which is in MainActivity.java but was missed in MainActivity2.java for some reason.
Added it into onResume()
I also realised that the "prevent screen from blanking" setting does not actually do anything, so removed it.
The old main activity screen does not blank when the phone is plugged in. But the new main activity (MainActivity2) blanks after a while. I haven't worked out why they are different yet....