Merge "Disable debug logging" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3639805700
@@ -20,7 +20,6 @@ import android.annotation.IntDef;
|
|||||||
import android.annotation.IntRange;
|
import android.annotation.IntRange;
|
||||||
import android.annotation.NonNull;
|
import android.annotation.NonNull;
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.os.Build;
|
|
||||||
|
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
||||||
@@ -38,7 +37,7 @@ public interface OnBackInvokedDispatcher {
|
|||||||
String TAG = "OnBackInvokedDispatcher";
|
String TAG = "OnBackInvokedDispatcher";
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
boolean DEBUG = Build.isDebuggable();
|
boolean DEBUG = false;
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
@IntDef({
|
@IntDef({
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ package android.window;
|
|||||||
import android.annotation.NonNull;
|
import android.annotation.NonNull;
|
||||||
import android.annotation.Nullable;
|
import android.annotation.Nullable;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.os.Debug;
|
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.RemoteException;
|
import android.os.RemoteException;
|
||||||
import android.os.SystemProperties;
|
import android.os.SystemProperties;
|
||||||
@@ -186,10 +185,6 @@ public class WindowOnBackInvokedDispatcher implements OnBackInvokedDispatcher {
|
|||||||
callbackInfo = new OnBackInvokedCallbackInfo(iCallback, priority);
|
callbackInfo = new OnBackInvokedCallbackInfo(iCallback, priority);
|
||||||
}
|
}
|
||||||
mWindowSession.setOnBackInvokedCallbackInfo(mWindow, callbackInfo);
|
mWindowSession.setOnBackInvokedCallbackInfo(mWindow, callbackInfo);
|
||||||
if (DEBUG && callback == null) {
|
|
||||||
Log.d(TAG, TextUtils.formatSimple("setTopOnBackInvokedCallback(null) Callers:%s",
|
|
||||||
Debug.getCallers(5, " ")));
|
|
||||||
}
|
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.e(TAG, "Failed to set OnBackInvokedCallback to WM. Error: " + e);
|
Log.e(TAG, "Failed to set OnBackInvokedCallback to WM. Error: " + e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user