mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-19 21:30:37 +01:00
allow detecting if the free app is installed
This commit is contained in:
parent
52035a920a
commit
7977c81392
@ -12,6 +12,11 @@
|
|||||||
android:name="android.hardware.faketouch"
|
android:name="android.hardware.faketouch"
|
||||||
android:required="false" />
|
android:required="false" />
|
||||||
|
|
||||||
|
<queries>
|
||||||
|
<package android:name="com.simplemobiletools.filemanager.debug" />
|
||||||
|
<package android:name="com.simplemobiletools.filemanager" />
|
||||||
|
</queries>
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:name=".App"
|
android:name=".App"
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
|
@ -55,8 +55,7 @@ import java.util.zip.ZipOutputStream
|
|||||||
class ItemsAdapter(
|
class ItemsAdapter(
|
||||||
activity: SimpleActivity, var listItems: MutableList<ListItem>, val listener: ItemOperationsListener?, recyclerView: MyRecyclerView,
|
activity: SimpleActivity, var listItems: MutableList<ListItem>, val listener: ItemOperationsListener?, recyclerView: MyRecyclerView,
|
||||||
val isPickMultipleIntent: Boolean, val swipeRefreshLayout: SwipeRefreshLayout?, canHaveIndividualViewType: Boolean = true, itemClick: (Any) -> Unit
|
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_FILE = 1
|
||||||
private val TYPE_DIR = 2
|
private val TYPE_DIR = 2
|
||||||
|
@ -370,7 +370,7 @@ class ItemsFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerF
|
|||||||
|
|
||||||
if (it.isDirectory) {
|
if (it.isDirectory) {
|
||||||
if (it.name.contains(text, true)) {
|
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) {
|
if (fileDirItem != null) {
|
||||||
files.add(fileDirItem)
|
files.add(fileDirItem)
|
||||||
}
|
}
|
||||||
@ -379,7 +379,7 @@ class ItemsFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerF
|
|||||||
files.addAll(searchFiles(text, it.absolutePath))
|
files.addAll(searchFiles(text, it.absolutePath))
|
||||||
} else {
|
} else {
|
||||||
if (it.name.contains(text, true)) {
|
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) {
|
if (fileDirItem != null) {
|
||||||
files.add(fileDirItem)
|
files.add(fileDirItem)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user