mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2025-02-24 08:21:11 +01:00
Lint: control flow issues
This commit is contained in:
parent
3dc63b80d1
commit
5b711fcec6
@ -147,12 +147,10 @@ public class CastDeviceControllerImpl extends ICastDeviceController.Stub impleme
|
||||
switch (message.getPayloadType()) {
|
||||
case STRING:
|
||||
String response = message.getPayloadUtf8();
|
||||
if (requestId == null) {
|
||||
this.onTextMessageReceived(message.getNamespace(), response);
|
||||
} else {
|
||||
if (requestId != null) {
|
||||
this.onSendMessageSuccess(response, requestId);
|
||||
this.onTextMessageReceived(message.getNamespace(), response);
|
||||
}
|
||||
this.onTextMessageReceived(message.getNamespace(), response);
|
||||
break;
|
||||
case BINARY:
|
||||
byte[] payload = message.getPayloadBinary();
|
||||
|
@ -153,9 +153,7 @@ public class DeviceConfiguration {
|
||||
if (eglcontext != EGL10.EGL_NO_CONTEXT) {
|
||||
javax.microedition.khronos.egl.EGLSurface eglsurface =
|
||||
egl10.eglCreatePbufferSurface(egldisplay, eglconfig, ai);
|
||||
if (eglsurface == EGL10.EGL_NO_SURFACE) {
|
||||
egl10.eglDestroyContext(egldisplay, eglcontext);
|
||||
} else {
|
||||
if (eglsurface != EGL10.EGL_NO_SURFACE) {
|
||||
egl10.eglMakeCurrent(egldisplay, eglsurface, eglsurface, eglcontext);
|
||||
String s = GLES10.glGetString(7939);
|
||||
if (s != null && !s.isEmpty()) {
|
||||
@ -168,8 +166,8 @@ public class DeviceConfiguration {
|
||||
}
|
||||
egl10.eglMakeCurrent(egldisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT);
|
||||
egl10.eglDestroySurface(egldisplay, eglsurface);
|
||||
}
|
||||
egl10.eglDestroyContext(egldisplay, eglcontext);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -647,11 +647,8 @@ public class McsService extends Service implements Handler.Callback {
|
||||
}
|
||||
|
||||
private void handleOutputDone(android.os.Message msg) {
|
||||
switch (msg.arg1) {
|
||||
case MCS_HEARTBEAT_PING_TAG:
|
||||
if (msg.arg1 == MCS_HEARTBEAT_PING_TAG) {
|
||||
wakeLock.release();
|
||||
break;
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user