From 17d1346a8a2fc31e0d35f991194c7097fe2b0c22 Mon Sep 17 00:00:00 2001 From: adinilfeld Date: Thu, 11 Jun 2020 09:36:57 -0700 Subject: [PATCH] made ClipboardManager final --- app/src/main/java/org/schabi/newpipe/util/ShareUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/util/ShareUtils.java b/app/src/main/java/org/schabi/newpipe/util/ShareUtils.java index 1b87f4f14..0ec2d571d 100644 --- a/app/src/main/java/org/schabi/newpipe/util/ShareUtils.java +++ b/app/src/main/java/org/schabi/newpipe/util/ShareUtils.java @@ -90,7 +90,7 @@ public final class ShareUtils { * @param text the text to copy */ public static void copyToClipboard(final Context context, final String text) { - ClipboardManager clipboardManager = + final ClipboardManager clipboardManager = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE); if (clipboardManager == null) {