File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
app/src/main/kotlin/com/simplemobiletools/notes/pro/activities Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ class MainActivity : SimpleActivity() {
106106 findItem(R .id.redo).isVisible = showRedoButton && mCurrentNote.type == TYPE_TEXT
107107 }
108108
109+ updateMenuItemColors(menu)
109110 return true
110111 }
111112
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.simplemobiletools.notes.pro.activities
22
33import android.content.Intent
44import android.os.Bundle
5+ import android.view.Menu
56import com.simplemobiletools.commons.dialogs.RadioGroupDialog
67import com.simplemobiletools.commons.extensions.beVisibleIf
78import com.simplemobiletools.commons.extensions.getAdjustedPrimaryColor
@@ -42,6 +43,12 @@ class SettingsActivity : SimpleActivity() {
4243 setupCustomizeWidgetColors()
4344 updateTextColors(settings_scrollview)
4445 setupSectionColors()
46+ invalidateOptionsMenu()
47+ }
48+
49+ override fun onCreateOptionsMenu (menu : Menu ): Boolean {
50+ updateMenuItemColors(menu)
51+ return super .onCreateOptionsMenu(menu)
4552 }
4653
4754 private fun setupSectionColors () {
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import android.graphics.Color
77import android.graphics.drawable.ColorDrawable
88import android.os.Bundle
99import android.util.TypedValue
10+ import android.view.Menu
1011import android.widget.RemoteViews
1112import com.google.gson.Gson
1213import com.google.gson.reflect.TypeToken
@@ -64,6 +65,11 @@ class WidgetConfigureActivity : SimpleActivity() {
6465 text_note_view.setTextSize(TypedValue .COMPLEX_UNIT_PX , applicationContext.getTextSize())
6566 }
6667
68+ override fun onCreateOptionsMenu (menu : Menu ): Boolean {
69+ updateMenuItemColors(menu)
70+ return super .onCreateOptionsMenu(menu)
71+ }
72+
6773 private fun initVariables () {
6874 mBgColor = config.widgetBgColor
6975 if (mBgColor == 1 ) {
You can’t perform that action at this time.
0 commit comments