Browse Source

keep screen on in setup process (#28)

V1.2.0-btc-release
JunZhang 5 years ago
committed by GitHub
parent
commit
5ce952c9da
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/com/cobo/cold/ui/SetupVaultActivity.java

2
app/src/main/java/com/cobo/cold/ui/SetupVaultActivity.java

@ -19,6 +19,7 @@ package com.cobo.cold.ui;
import android.content.Intent;
import android.os.Bundle;
import android.view.WindowManager;
import androidx.annotation.NonNull;
import androidx.databinding.DataBindingUtil;
@ -51,6 +52,7 @@ public class SetupVaultActivity extends FullScreenActivity {
SetupVaultViewModel model = ViewModelProviders.of(this).get(SetupVaultViewModel.class);
model.setPassword(password);
}
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
}
private void setupNavController(Bundle savedInstanceState) {

Loading…
Cancel
Save