INNER CODE UNIT · Kotlin
onResume
FossifyOrg/Gallery · app/src/main/kotlin/org/fossify/gallery/activities/EditActivity.kt:159
override fun onResume() {
super.onResume()
isEditingWithThirdParty = false
binding.bottomEditorDrawActions.bottomDrawWidth.setColors(getProperTextColor(), getProperPrimaryColor(), getProperBackgroundColor())
setupTopAppBar(binding.editorAppbar, NavigationIcon.Arrow)
}
override fun onStop() {
super.onStop()
if (isEditingWithThirdParty) {
finish()
}
}
private fun setupOptionsMenu() {
binding.editorToolbar.setOnMenuItemClickListener { menuItem ->
when (menuItem.itemId) {
R.id.save_as -> startSaveFlow(overwrite = false)