From 90c20f124b16ebe5531f40fc06494fa1b5c9a0aa Mon Sep 17 00:00:00 2001 From: Xiang Rong Lin <41164160+XiangRongLin@users.noreply.github.com> Date: Sat, 1 Feb 2020 16:27:53 +0100 Subject: [PATCH] Move log statement into "if (DEBUG)" --- .../org/schabi/newpipe/local/bookmark/BookmarkFragment.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/local/bookmark/BookmarkFragment.java b/app/src/main/java/org/schabi/newpipe/local/bookmark/BookmarkFragment.java index bfd90acda..ea9655921 100644 --- a/app/src/main/java/org/schabi/newpipe/local/bookmark/BookmarkFragment.java +++ b/app/src/main/java/org/schabi/newpipe/local/bookmark/BookmarkFragment.java @@ -291,8 +291,10 @@ public final class BookmarkFragment return; } - Log.d(TAG, "Updating playlist id=[" + id + - "] with new name=[" + name + "] items"); + if (DEBUG) { + Log.d(TAG, "Updating playlist id=[" + id + + "] with new name=[" + name + "] items"); + } localPlaylistManager.renamePlaylist(id, name); final Disposable disposable = localPlaylistManager.renamePlaylist(id, name)