Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ open class CropImageActivity : AppCompatActivity(), OnSetImageUriCompleteListene
* Update the color of a specific menu item to the given color.
*/
open fun updateMenuItemTextColor(menu: Menu, itemId: Int, color: Int) {
val menuItem = menu.findItem(itemId)
val menuItem = menu.findItem(itemId) ?: return
val menuTitle = menuItem.title
if (menuTitle?.isNotBlank() == true) {
try {
Expand Down