Merge "DO NOT MERGE Add logging for when IOnBackInvokedCallback is null." into tm-qpr-dev
This commit is contained in:
@@ -291,6 +291,7 @@ public class WindowOnBackInvokedDispatcher implements OnBackInvokedDispatcher {
|
||||
mProgressAnimator.reset();
|
||||
final OnBackInvokedCallback callback = mCallback.get();
|
||||
if (callback == null) {
|
||||
Log.d(TAG, "Trying to call onBackInvoked() on a null callback reference.");
|
||||
return;
|
||||
}
|
||||
callback.onBackInvoked();
|
||||
|
||||
Reference in New Issue
Block a user