Merge "Fix NullPointerException of LocalMediaManager" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
e22ab2c94b
@@ -157,7 +157,11 @@ public class MediaOutputIndicatorWorker extends SliceBackgroundWorker implements
|
||||
return mMediaDevices;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public MediaDevice getCurrentConnectedMediaDevice() {
|
||||
if (mLocalMediaManager == null) {
|
||||
return null;
|
||||
}
|
||||
return mLocalMediaManager.getCurrentConnectedDevice();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user