Skip to content

Commit dfb87a8

Browse files
committed
updating commons
1 parent 8f70d55 commit dfb87a8

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

app/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ android {
4646
}
4747
}
4848

49+
flavorDimensions "variants"
50+
productFlavors {
51+
core {}
52+
fdroid {}
53+
}
54+
4955
sourceSets {
5056
main.java.srcDirs += 'src/main/kotlin'
5157
}
@@ -57,7 +63,7 @@ android {
5763
}
5864

5965
dependencies {
60-
implementation 'com.github.SimpleMobileTools:Simple-Commons:d39bf6263d'
66+
implementation 'com.github.SimpleMobileTools:Simple-Commons:4d36cc84e9'
6167
implementation 'com.github.Stericson:RootTools:df729dcb13'
6268
implementation 'com.github.Stericson:RootShell:1.6'
6369
implementation 'com.alexvasilkov:gesture-views:2.5.2'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<bool name="show_donate_in_about">true</bool>
4+
</resources>

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class MainActivity : SimpleActivity() {
200200
R.id.stop_showing_hidden -> tryToggleTemporarilyShowHidden()
201201
R.id.increase_column_count -> increaseColumnCount()
202202
R.id.reduce_column_count -> reduceColumnCount()
203-
R.id.settings -> startActivity(Intent(applicationContext, SettingsActivity::class.java))
203+
R.id.settings -> launchSettings()
204204
R.id.about -> launchAbout()
205205
else -> return super.onOptionsItemSelected(item)
206206
}
@@ -598,6 +598,11 @@ class MainActivity : SimpleActivity() {
598598
}
599599
}
600600

601+
private fun launchSettings() {
602+
hideKeyboard()
603+
startActivity(Intent(applicationContext, SettingsActivity::class.java))
604+
}
605+
601606
private fun launchAbout() {
602607
val licenses = LICENSE_GLIDE or LICENSE_PATTERN or LICENSE_REPRINT or LICENSE_GESTURE_VIEWS
603608

0 commit comments

Comments
 (0)