Skip to content

Commit

Permalink
App lock bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CookieJarApps committed Oct 21, 2020
1 parent 355352c commit 1031228
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -497,17 +497,18 @@ abstract class BrowserActivity : ThemableBrowserActivity(), BrowserView, UIContr
.setCancelable(false)
.setNegativeButton(R.string.action_back) { dialog, which ->
//listener.onClick(editText.getText().toString());
val settings = Intent(this, SettingsActivity::class.java)
settings.flags = Intent.FLAG_ACTIVITY_CLEAR_TOP
startActivity(settings)
moveTaskToBack(true);
exitProcess(-1)
}
.setPositiveButton(R.string.action_ok
) { _, _ ->
//listener.onClick(editText.getText().toString());
if (editText.text.toString() != userPreferences.passwordText){
if (editText.text.toString() != userPreferences.passwordTextLock){
val duration = Toast.LENGTH_SHORT
val toast = Toast.makeText(this, resources.getString(R.string.wrong_password), duration)
toast.show()
moveTaskToBack(true);
exitProcess(-1)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class ParentalControlSettingsFragment : AbstractSettingsFragment() {
val values = PasswordChoice.values().map {
Pair(it, when (it) {
PasswordChoice.NONE -> stringArray[0]
PasswordChoice.CUSTOM -> stringArray[1]
PasswordChoice.CUSTOM -> resources.getString(R.string.enter_password)
})
}
withSingleChoiceItems(values, userPreferences.passwordChoice) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class PrivacySettingsFragment : AbstractSettingsFragment() {
val values = PasswordChoice.values().map {
Pair(it, when (it) {
PasswordChoice.NONE -> stringArray[0]
PasswordChoice.CUSTOM -> stringArray[1]
PasswordChoice.CUSTOM -> resources.getString(R.string.enter_password)
})
}
withSingleChoiceItems(values, userPreferences.passwordChoiceLock) {
Expand Down

0 comments on commit 1031228

Please sign in to comment.