Fix logging in ClipboardReflection
This commit is contained in:
@@ -21,6 +21,7 @@ import java.lang.reflect.Method;
|
|||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
||||||
|
import org.sufficientlysecure.keychain.Constants;
|
||||||
import org.sufficientlysecure.keychain.util.Log;
|
import org.sufficientlysecure.keychain.util.Log;
|
||||||
|
|
||||||
public class ClipboardReflection {
|
public class ClipboardReflection {
|
||||||
@@ -50,8 +51,7 @@ public class ClipboardReflection {
|
|||||||
methodNewPlainText.invoke(clipboard, clip);
|
methodNewPlainText.invoke(clipboard, clip);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.e("ProjectsException", "There was an error copying the text to the clipboard: "
|
Log.e(Constants.TAG, "There was an error copying the text to the clipboard", e);
|
||||||
+ e.getMessage());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,9 +89,7 @@ public class ClipboardReflection {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.e("ProjectsException", "There was an error getting the text from the clipboard: "
|
Log.e(Constants.TAG, "There was an error getting the text from the clipboard", e);
|
||||||
+ e.getMessage());
|
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user