do not use Text Design module at the editor, it takes up too much space
This commit is contained in:
parent
b5ceca3231
commit
74612341f3
2 changed files with 13 additions and 1 deletions
|
@ -101,7 +101,6 @@ pesdkConfig {
|
|||
include 'ly.img.android.pesdk.ui.mobile_ui:filter'
|
||||
include 'ly.img.android.pesdk.ui.mobile_ui:transform'
|
||||
include 'ly.img.android.pesdk.ui.mobile_ui:adjustment'
|
||||
include 'ly.img.android.pesdk.ui.mobile_ui:text-design'
|
||||
|
||||
// Add asset packs if you need
|
||||
include 'ly.img.android.pesdk.assets:font-basic'
|
||||
|
|
|
@ -24,9 +24,14 @@ import ly.img.android.pesdk.backend.model.state.EditorSaveSettings
|
|||
import ly.img.android.pesdk.backend.model.state.manager.SettingsList
|
||||
import ly.img.android.pesdk.ui.activity.PhotoEditorBuilder
|
||||
import ly.img.android.pesdk.ui.model.state.UiConfigFilter
|
||||
import ly.img.android.pesdk.ui.model.state.UiConfigMainMenu
|
||||
import ly.img.android.pesdk.ui.model.state.UiConfigText
|
||||
import ly.img.android.pesdk.ui.model.state.UiConfigTheme
|
||||
import ly.img.android.pesdk.ui.panels.item.ToolItem
|
||||
import java.io.File
|
||||
import java.util.*
|
||||
import kotlin.collections.LinkedHashMap
|
||||
import kotlin.collections.set
|
||||
|
||||
class NewEditActivity : SimpleActivity() {
|
||||
private val PESDK_EDIT_IMAGE = 1
|
||||
|
@ -176,6 +181,14 @@ class NewEditActivity : SimpleActivity() {
|
|||
FontPackBasic.getFontPack()
|
||||
)
|
||||
|
||||
// do not use Text Design, it takes up too much space
|
||||
val tools = settingsList.getSettingsModel(UiConfigMainMenu::class.java).toolList
|
||||
val newTools = tools.filterNot {
|
||||
it.name!!.isEmpty()
|
||||
}.toMutableList() as ArrayList<ToolItem>
|
||||
|
||||
settingsList.getSettingsModel(UiConfigMainMenu::class.java).setToolList(newTools)
|
||||
|
||||
settingsList.getSettingsModel(UiConfigTheme::class.java).theme = R.style.Imgly_Theme_NoFullscreen
|
||||
|
||||
settingsList.getSettingsModel(EditorSaveSettings::class.java)
|
||||
|
|
Loading…
Reference in a new issue