Skip to content

Commit 7977c81

Browse files
committed
allow detecting if the free app is installed
1 parent 52035a9 commit 7977c81

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
android:name="android.hardware.faketouch"
1313
android:required="false" />
1414

15+
<queries>
16+
<package android:name="com.simplemobiletools.filemanager.debug" />
17+
<package android:name="com.simplemobiletools.filemanager" />
18+
</queries>
19+
1520
<application
1621
android:name=".App"
1722
android:allowBackup="true"

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/adapters/ItemsAdapter.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ import java.util.zip.ZipOutputStream
5555
class ItemsAdapter(
5656
activity: SimpleActivity, var listItems: MutableList<ListItem>, val listener: ItemOperationsListener?, recyclerView: MyRecyclerView,
5757
val isPickMultipleIntent: Boolean, val swipeRefreshLayout: SwipeRefreshLayout?, canHaveIndividualViewType: Boolean = true, itemClick: (Any) -> Unit
58-
) :
59-
MyRecyclerViewAdapter(activity, recyclerView, itemClick), RecyclerViewFastScroller.OnPopupTextUpdate {
58+
) : MyRecyclerViewAdapter(activity, recyclerView, itemClick), RecyclerViewFastScroller.OnPopupTextUpdate {
6059

6160
private val TYPE_FILE = 1
6261
private val TYPE_DIR = 2

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ class ItemsFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerF
370370

371371
if (it.isDirectory) {
372372
if (it.name.contains(text, true)) {
373-
val fileDirItem = getListItemFromFile(it, isSortingBySize, HashMap<String, Long>(), false)
373+
val fileDirItem = getListItemFromFile(it, isSortingBySize, HashMap(), false)
374374
if (fileDirItem != null) {
375375
files.add(fileDirItem)
376376
}
@@ -379,7 +379,7 @@ class ItemsFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerF
379379
files.addAll(searchFiles(text, it.absolutePath))
380380
} else {
381381
if (it.name.contains(text, true)) {
382-
val fileDirItem = getListItemFromFile(it, isSortingBySize, HashMap<String, Long>(), false)
382+
val fileDirItem = getListItemFromFile(it, isSortingBySize, HashMap(), false)
383383
if (fileDirItem != null) {
384384
files.add(fileDirItem)
385385
}

0 commit comments

Comments
 (0)