Don't sleep screen in calls

Fixes #6141
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-02-02 19:02:26 -08:00
parent 7d644ae9c6
commit 0992d6545e

View File

@ -68,6 +68,7 @@ public class WebRtcCallActivity extends Activity {
public void onCreate(Bundle savedInstanceState) {
Log.w(TAG, "onCreate()");
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);