Browse Source

Keep screen on

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 7 years ago
parent
commit
c8ff05ed04

+ 2 - 1
app/src/main/res/layout/controller_account_verification.xml

@@ -23,7 +23,8 @@
                 xmlns:tools="http://schemas.android.com/tools"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
-                android:background="@color/nc_white_color">
+                android:background="@color/nc_white_color"
+                android:keepScreenOn="true">
 
     <ProgressBar
         android:id="@+id/progress_bar"

+ 1 - 1
app/src/main/res/layout/controller_web_view_login.xml

@@ -22,6 +22,7 @@
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
+                android:keepScreenOn="true"
                 android:orientation="vertical">
 
     <ProgressBar
@@ -41,7 +42,6 @@
         android:id="@+id/webview"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
-        android:keepScreenOn="true"
         android:visibility="invisible">
 
     </WebView>