move the Focus editor tool at the end, show the best tools first

This commit is contained in:
tibbi 2019-12-27 20:08:11 +01:00
parent 29edf2d86b
commit 6fe62ee83b
2 changed files with 9 additions and 1 deletions

View file

@ -69,7 +69,7 @@ android {
}
dependencies {
implementation 'com.simplemobiletools:commons:5.21.0'
implementation 'com.simplemobiletools:commons:5.21.7'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'it.sephiroth.android.exif:library:1.0.1'

View file

@ -223,6 +223,14 @@ class NewEditActivity : SimpleActivity() {
it.name!!.isEmpty()
}.toMutableList() as ArrayList<ToolItem>
// move Focus to the end, as it is the least used
// on some devices it is not obvious that the toolbar can be scrolled horizontally, so move the best ones to the start to make them visible
val focus = newTools.firstOrNull { it.name == getString(R.string.pesdk_focus_title_name) }
if (focus != null) {
newTools.remove(focus)
newTools.add(focus)
}
settingsList.getSettingsModel(UiConfigMainMenu::class.java).setToolList(newTools)
settingsList.getSettingsModel(UiConfigTheme::class.java).theme = R.style.Imgly_Theme_NoFullscreen