Merge "[Companion] Fix NPE in associate" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ba003a97f8
@@ -288,6 +288,7 @@ public final class CompanionDeviceManager {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onActivityDestroyed(Activity activity) {
|
public void onActivityDestroyed(Activity activity) {
|
||||||
|
if (activity != getActivity()) return;
|
||||||
try {
|
try {
|
||||||
mService.stopScan(mRequest, this, getCallingPackage());
|
mService.stopScan(mRequest, this, getCallingPackage());
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user