From ba98170effa6079d381e6f2cb8ebbd5eabc679de Mon Sep 17 00:00:00 2001 From: lpeter Date: Fri, 10 Jul 2020 18:00:29 +0800 Subject: Use Log.w(String, String, Throwable tr) instead of Log.w(String, String) Use Log.w(String, String, Throwable tr) instead of Log.w(String, String) to give a bit better performance. Bug: 160931064 Test: manual verification Change-Id: I3622f306f706f1cb327c4d974b678b700a1d1d20 --- core/java/android/inputmethodservice/InlineSuggestionSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/java/android/inputmethodservice/InlineSuggestionSession.java') diff --git a/core/java/android/inputmethodservice/InlineSuggestionSession.java b/core/java/android/inputmethodservice/InlineSuggestionSession.java index 90d0ff0a5026..20bf6e0024e3 100644 --- a/core/java/android/inputmethodservice/InlineSuggestionSession.java +++ b/core/java/android/inputmethodservice/InlineSuggestionSession.java @@ -152,7 +152,7 @@ class InlineSuggestionSession { try { mCallback.onInlineSuggestionsSessionInvalidated(); } catch (RemoteException e) { - Log.w(TAG, "onInlineSuggestionsSessionInvalidated() remote exception:" + e); + Log.w(TAG, "onInlineSuggestionsSessionInvalidated() remote exception", e); } if (mResponseCallback != null) { consumeInlineSuggestionsResponse(EMPTY_RESPONSE); -- cgit v1.2.3