updating commons

This commit is contained in:
tibbi 2022-02-05 12:17:21 +01:00
parent 8f70d55ab5
commit dfb87a840a
3 changed files with 17 additions and 2 deletions

View File

@ -46,6 +46,12 @@ android {
}
}
flavorDimensions "variants"
productFlavors {
core {}
fdroid {}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
@ -57,7 +63,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:d39bf6263d'
implementation 'com.github.SimpleMobileTools:Simple-Commons:4d36cc84e9'
implementation 'com.github.Stericson:RootTools:df729dcb13'
implementation 'com.github.Stericson:RootShell:1.6'
implementation 'com.alexvasilkov:gesture-views:2.5.2'

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="show_donate_in_about">true</bool>
</resources>

View File

@ -200,7 +200,7 @@ class MainActivity : SimpleActivity() {
R.id.stop_showing_hidden -> tryToggleTemporarilyShowHidden()
R.id.increase_column_count -> increaseColumnCount()
R.id.reduce_column_count -> reduceColumnCount()
R.id.settings -> startActivity(Intent(applicationContext, SettingsActivity::class.java))
R.id.settings -> launchSettings()
R.id.about -> launchAbout()
else -> return super.onOptionsItemSelected(item)
}
@ -598,6 +598,11 @@ class MainActivity : SimpleActivity() {
}
}
private fun launchSettings() {
hideKeyboard()
startActivity(Intent(applicationContext, SettingsActivity::class.java))
}
private fun launchAbout() {
val licenses = LICENSE_GLIDE or LICENSE_PATTERN or LICENSE_REPRINT or LICENSE_GESTURE_VIEWS