mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
use more descriptive variable naming at unlocking
This commit is contained in:
@@ -160,8 +160,8 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||
media_empty_text_placeholder_2.setTextColor(getAdjustedPrimaryColor())
|
||||
|
||||
if (mMedia.isEmpty() || config.getFolderSorting(mPath) and SORT_BY_RANDOM == 0) {
|
||||
handleLockedFolderOpening(mPath) {
|
||||
if (it) {
|
||||
handleLockedFolderOpening(mPath) { success ->
|
||||
if (success) {
|
||||
tryLoadGallery()
|
||||
} else {
|
||||
finish()
|
||||
|
@@ -308,8 +308,8 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||
|
||||
showSystemUI(true)
|
||||
|
||||
handleLockedFolderOpening(mPath.getParentPath()) {
|
||||
if (it) {
|
||||
handleLockedFolderOpening(mPath.getParentPath()) { success ->
|
||||
if (success) {
|
||||
initContinue()
|
||||
} else {
|
||||
finish()
|
||||
|
Reference in New Issue
Block a user