From ff3778e9839a871eaf6a1e037865ff62bb34aee3 Mon Sep 17 00:00:00 2001 From: Maxim Leshchenko Date: Thu, 9 Sep 2021 17:23:26 +0300 Subject: [PATCH] Show the send clipboard button on the device page only if the application is running on Android 10 or higher --- .../kdeconnect/Plugins/ClibpoardPlugin/ClipboardPlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/kde/kdeconnect/Plugins/ClibpoardPlugin/ClipboardPlugin.java b/src/org/kde/kdeconnect/Plugins/ClibpoardPlugin/ClipboardPlugin.java index a86ca8ab..14c8fdc1 100644 --- a/src/org/kde/kdeconnect/Plugins/ClibpoardPlugin/ClipboardPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/ClibpoardPlugin/ClipboardPlugin.java @@ -12,6 +12,7 @@ import android.app.Activity; import android.content.ClipData; import android.content.ClipboardManager; import android.graphics.drawable.Drawable; +import android.os.Build; import android.widget.Toast; import androidx.core.content.ContextCompat; @@ -126,7 +127,7 @@ public class ClipboardPlugin extends Plugin { @Override public boolean hasMainActivity() { - return true; + return Build.VERSION.SDK_INT > Build.VERSION_CODES.P; } @Override