allow detecting if the free app is installed

This commit is contained in:
tibbi 2023-01-27 14:01:39 +01:00
parent 52035a920a
commit 7977c81392
3 changed files with 8 additions and 4 deletions

View file

@ -12,6 +12,11 @@
android:name="android.hardware.faketouch"
android:required="false" />
<queries>
<package android:name="com.simplemobiletools.filemanager.debug" />
<package android:name="com.simplemobiletools.filemanager" />
</queries>
<application
android:name=".App"
android:allowBackup="true"

View file

@ -55,8 +55,7 @@ import java.util.zip.ZipOutputStream
class ItemsAdapter(
activity: SimpleActivity, var listItems: MutableList<ListItem>, val listener: ItemOperationsListener?, recyclerView: MyRecyclerView,
val isPickMultipleIntent: Boolean, val swipeRefreshLayout: SwipeRefreshLayout?, canHaveIndividualViewType: Boolean = true, itemClick: (Any) -> Unit
) :
MyRecyclerViewAdapter(activity, recyclerView, itemClick), RecyclerViewFastScroller.OnPopupTextUpdate {
) : MyRecyclerViewAdapter(activity, recyclerView, itemClick), RecyclerViewFastScroller.OnPopupTextUpdate {
private val TYPE_FILE = 1
private val TYPE_DIR = 2

View file

@ -370,7 +370,7 @@ class ItemsFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerF
if (it.isDirectory) {
if (it.name.contains(text, true)) {
val fileDirItem = getListItemFromFile(it, isSortingBySize, HashMap<String, Long>(), false)
val fileDirItem = getListItemFromFile(it, isSortingBySize, HashMap(), false)
if (fileDirItem != null) {
files.add(fileDirItem)
}
@ -379,7 +379,7 @@ class ItemsFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerF
files.addAll(searchFiles(text, it.absolutePath))
} else {
if (it.name.contains(text, true)) {
val fileDirItem = getListItemFromFile(it, isSortingBySize, HashMap<String, Long>(), false)
val fileDirItem = getListItemFromFile(it, isSortingBySize, HashMap(), false)
if (fileDirItem != null) {
files.add(fileDirItem)
}