mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-04-05 22:21:01 +02:00
removing a redundant variable
This commit is contained in:
parent
d2b8380ed2
commit
05c25f56de
@ -44,7 +44,6 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
|
|||||||
private lateinit var folderDrawable: Drawable
|
private lateinit var folderDrawable: Drawable
|
||||||
private lateinit var fileDrawable: Drawable
|
private lateinit var fileDrawable: Drawable
|
||||||
private var currentItemsHash = fileDirItems.hashCode()
|
private var currentItemsHash = fileDirItems.hashCode()
|
||||||
private val hasOTGConnected = activity.hasOTGConnected()
|
|
||||||
private var textToHighlight = ""
|
private var textToHighlight = ""
|
||||||
var adjustedPrimaryColor = activity.getAdjustedPrimaryColor()
|
var adjustedPrimaryColor = activity.getAdjustedPrimaryColor()
|
||||||
|
|
||||||
@ -573,7 +572,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
|
|||||||
.error(fileDrawable)
|
.error(fileDrawable)
|
||||||
.centerCrop()
|
.centerCrop()
|
||||||
|
|
||||||
var itemToLoad = if (fileDirItem.name.endsWith(".apk", true)) {
|
val itemToLoad = if (fileDirItem.name.endsWith(".apk", true)) {
|
||||||
val packageInfo = context.packageManager.getPackageArchiveInfo(path, PackageManager.GET_ACTIVITIES)
|
val packageInfo = context.packageManager.getPackageArchiveInfo(path, PackageManager.GET_ACTIVITIES)
|
||||||
if (packageInfo != null) {
|
if (packageInfo != null) {
|
||||||
val appInfo = packageInfo.applicationInfo
|
val appInfo = packageInfo.applicationInfo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user