From b2dbfd30839f110d86e115b23499091d1c766000 Mon Sep 17 00:00:00 2001 From: Prathamesh More Date: Sat, 13 Nov 2021 22:06:50 +0530 Subject: [PATCH] Fixed toolbar popup options not visible in multi-select mode in Light mode --- .../retromusic/adapter/base/AbsMultiSelectAdapter.kt | 2 ++ app/src/main/res/layout/mcab_toolbar.xml | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 app/src/main/res/layout/mcab_toolbar.xml diff --git a/app/src/main/java/code/name/monkey/retromusic/adapter/base/AbsMultiSelectAdapter.kt b/app/src/main/java/code/name/monkey/retromusic/adapter/base/AbsMultiSelectAdapter.kt index 9086af0f..28975911 100644 --- a/app/src/main/java/code/name/monkey/retromusic/adapter/base/AbsMultiSelectAdapter.kt +++ b/app/src/main/java/code/name/monkey/retromusic/adapter/base/AbsMultiSelectAdapter.kt @@ -1,5 +1,6 @@ package code.name.monkey.retromusic.adapter.base +import android.annotation.SuppressLint import android.graphics.Color import android.view.Menu import android.view.MenuItem @@ -94,6 +95,7 @@ abstract class AbsMultiSelectAdapter( notifyDataSetChanged() } + @SuppressLint("StringFormatInvalid", "StringFormatMatches") private fun updateCab() { if (ICabHolder != null) { if (cab == null || !cab!!.isActive()) { diff --git a/app/src/main/res/layout/mcab_toolbar.xml b/app/src/main/res/layout/mcab_toolbar.xml new file mode 100644 index 00000000..9efe854e --- /dev/null +++ b/app/src/main/res/layout/mcab_toolbar.xml @@ -0,0 +1,8 @@ + + \ No newline at end of file