Skip to content

Commit

Permalink
Disabled "Keep pass phrase in memory" for release builds.| #372
Browse files Browse the repository at this point in the history
  • Loading branch information
DenBond7 committed May 26, 2021
1 parent d9581d0 commit 452f6f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ class CheckKeysActivity : BaseNodeActivity(), View.OnClickListener,
}

rGPassphraseType = findViewById(R.id.rGPassphraseType)

if (GeneralUtil.isDebugBuild()) {
findViewById<View>(R.id.rBStoreInRAM).isEnabled = true
}
}

private fun initButton(buttonViewId: Int, visibility: Int = View.VISIBLE, text: String?) {
Expand Down
1 change: 1 addition & 0 deletions FlowCrypt/src/main/res/layout/activity_check_keys.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
android:id="@+id/rBStoreInRAM"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:enabled="false"
android:text="@string/keep_pass_phrase_in_memory" />
</RadioGroup>

Expand Down

0 comments on commit 452f6f6

Please sign in to comment.