Fix NullPointerException of LocalMediaManager
Bug: LocalMediaManager Test: build pass Change-Id: Ib53cb11d28669486573777be992711200a39cd85
This commit is contained in:
@@ -157,7 +157,11 @@ public class MediaOutputIndicatorWorker extends SliceBackgroundWorker implements
|
|||||||
return mMediaDevices;
|
return mMediaDevices;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
public MediaDevice getCurrentConnectedMediaDevice() {
|
public MediaDevice getCurrentConnectedMediaDevice() {
|
||||||
|
if (mLocalMediaManager == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return mLocalMediaManager.getCurrentConnectedDevice();
|
return mLocalMediaManager.getCurrentConnectedDevice();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user