Skip to content

Commit

Permalink
more on #111 to keep screen on, to keep camera active
Browse files Browse the repository at this point in the history
  • Loading branch information
n8fr8 committed Jan 17, 2018
1 parent d3ef157 commit a58f7ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/havenapp/main/MonitorActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.TextView;

Expand Down Expand Up @@ -62,6 +63,9 @@ protected void onCreate(Bundle savedInstanceState) {

if (!permsNeeded)
initLayout();

getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

}

private void initLayout() {
Expand Down

0 comments on commit a58f7ed

Please sign in to comment.