From 51e28f3a6b3c5b4abbe044ba1bd314d91e79f944 Mon Sep 17 00:00:00 2001 From: DeweyReed <32358486+DeweyReed@users.noreply.github.com> Date: Sat, 23 Oct 2021 14:05:36 +0800 Subject: [PATCH] Disable the tile on Android S or later --- .../java/io/github/deweyreed/clipboardcleaner/MainActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/io/github/deweyreed/clipboardcleaner/MainActivity.kt b/app/src/main/java/io/github/deweyreed/clipboardcleaner/MainActivity.kt index 60f4c09..5618fba 100644 --- a/app/src/main/java/io/github/deweyreed/clipboardcleaner/MainActivity.kt +++ b/app/src/main/java/io/github/deweyreed/clipboardcleaner/MainActivity.kt @@ -82,6 +82,10 @@ class MainActivity : AppCompatActivity() { } } } + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { + // The tile doesn't work during my test. + binding.cardTile.isGone = true + } } override fun onCreateOptionsMenu(menu: Menu?): Boolean {