mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-11 18:36:02 +00:00
Fix several Lint warnings
This commit is contained in:
@@ -590,7 +590,7 @@ public class AppView extends Activity implements AdapterFragmentCallbacks {
|
|||||||
listView.requestFocus();
|
listView.requestFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AppObject {
|
public static class AppObject {
|
||||||
public final NvApp app;
|
public final NvApp app;
|
||||||
public boolean isRunning;
|
public boolean isRunning;
|
||||||
|
|
||||||
|
|||||||
@@ -719,7 +719,7 @@ public class PcView extends Activity implements AdapterFragmentCallbacks {
|
|||||||
registerForContextMenu(listView);
|
registerForContextMenu(listView);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ComputerObject {
|
public static class ComputerObject {
|
||||||
public ComputerDetails details;
|
public ComputerDetails details;
|
||||||
|
|
||||||
public ComputerObject(ComputerDetails details) {
|
public ComputerObject(ComputerDetails details) {
|
||||||
|
|||||||
@@ -1616,7 +1616,7 @@ public class ControllerHandler implements InputManager.InputDeviceListener, UsbD
|
|||||||
usbDeviceContexts.put(controller.getControllerId(), context);
|
usbDeviceContexts.put(controller.getControllerId(), context);
|
||||||
}
|
}
|
||||||
|
|
||||||
class GenericControllerContext {
|
static class GenericControllerContext {
|
||||||
public int id;
|
public int id;
|
||||||
public boolean external;
|
public boolean external;
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import java.util.Timer;
|
|||||||
import java.util.TimerTask;
|
import java.util.TimerTask;
|
||||||
|
|
||||||
public class VirtualController {
|
public class VirtualController {
|
||||||
public class ControllerInputContext {
|
public static class ControllerInputContext {
|
||||||
public short inputMap = 0x0000;
|
public short inputMap = 0x0000;
|
||||||
public byte leftTrigger = 0x00;
|
public byte leftTrigger = 0x00;
|
||||||
public byte rightTrigger = 0x00;
|
public byte rightTrigger = 0x00;
|
||||||
|
|||||||
@@ -362,7 +362,7 @@ public class CachedAppAssetLoader {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class LoaderTuple {
|
public static class LoaderTuple {
|
||||||
public final ComputerDetails computer;
|
public final ComputerDetails computer;
|
||||||
public final NvApp app;
|
public final NvApp app;
|
||||||
|
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ int BridgeDrSubmitDecodeUnit(PDECODE_UNIT decodeUnit) {
|
|||||||
ret = (*env)->CallStaticIntMethod(env, GlobalBridgeClass, BridgeDrSubmitDecodeUnitMethod,
|
ret = (*env)->CallStaticIntMethod(env, GlobalBridgeClass, BridgeDrSubmitDecodeUnitMethod,
|
||||||
DecodedFrameBuffer, offset, BUFFER_TYPE_PICDATA,
|
DecodedFrameBuffer, offset, BUFFER_TYPE_PICDATA,
|
||||||
decodeUnit->frameNumber,
|
decodeUnit->frameNumber,
|
||||||
decodeUnit->receiveTimeMs);
|
(jlong)decodeUnit->receiveTimeMs);
|
||||||
if ((*env)->ExceptionCheck(env)) {
|
if ((*env)->ExceptionCheck(env)) {
|
||||||
// We will crash here
|
// We will crash here
|
||||||
(*JVM)->DetachCurrentThread(JVM);
|
(*JVM)->DetachCurrentThread(JVM);
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="app_label" translatable="false">Moonlight</string>
|
|
||||||
<string name="app_label_root" translatable="false">Moonlight (Root)</string>
|
|
||||||
|
|
||||||
<!-- Shortcut strings -->
|
<!-- Shortcut strings -->
|
||||||
<string name="scut_deleted_pc"> 电脑已删除 </string>
|
<string name="scut_deleted_pc"> 电脑已删除 </string>
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="app_label" translatable="false">Moonlight</string>
|
|
||||||
<string name="app_label_root" translatable="false">Moonlight (Root)</string>
|
|
||||||
|
|
||||||
<!-- Shortcut strings -->
|
<!-- Shortcut strings -->
|
||||||
<string name="scut_deleted_pc"> 電腦已刪除 </string>
|
<string name="scut_deleted_pc"> 電腦已刪除 </string>
|
||||||
|
|||||||
Reference in New Issue
Block a user