diff options
-rw-r--r-- | OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/compatibility/ClipboardReflection.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/compatibility/ClipboardReflection.java b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/compatibility/ClipboardReflection.java index 704448e47..032af4c71 100644 --- a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/compatibility/ClipboardReflection.java +++ b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/compatibility/ClipboardReflection.java @@ -21,6 +21,7 @@ import java.lang.reflect.Method; import android.content.Context; +import org.sufficientlysecure.keychain.Constants; import org.sufficientlysecure.keychain.util.Log; public class ClipboardReflection { @@ -50,8 +51,7 @@ public class ClipboardReflection { methodNewPlainText.invoke(clipboard, clip); } } catch (Exception e) { - Log.e("ProjectsException", "There was an error copying the text to the clipboard: " - + e.getMessage()); + Log.e(Constants.TAG, "There was an error copying the text to the clipboard", e); } } @@ -89,9 +89,7 @@ public class ClipboardReflection { return null; } } catch (Exception e) { - Log.e("ProjectsException", "There was an error getting the text from the clipboard: " - + e.getMessage()); - + Log.e(Constants.TAG, "There was an error getting the text from the clipboard", e); return null; } } |