mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-01 22:07:01 +01:00
More fixes.
This commit is contained in:
parent
ee1a7ad8ce
commit
7b0a6b3da8
@ -146,7 +146,7 @@ public class APKExpansionPolicy implements Policy {
|
||||
// Reset the licensing URL since it is only applicable for NOT_LICENSED responses.
|
||||
setLicensingUrl(null);
|
||||
setValidityTimestamp(Long.toString(System.currentTimeMillis() + MILLIS_PER_MINUTE));
|
||||
RBSet<String> keys = extras.keySet();
|
||||
Set<String> keys = extras.keySet();
|
||||
for (String key : keys) {
|
||||
if (key.equals("VT")) {
|
||||
setValidityTimestamp(extras.get(key));
|
||||
|
@ -80,7 +80,7 @@ public class LicenseChecker implements ServiceConnection {
|
||||
private Handler mHandler;
|
||||
private final String mPackageName;
|
||||
private final String mVersionCode;
|
||||
private final RBSet<LicenseValidator> mChecksInProgress = new HashRBSet<LicenseValidator>();
|
||||
private final Set<LicenseValidator> mChecksInProgress = new HashSet<LicenseValidator>();
|
||||
private final Queue<LicenseValidator> mPendingChecks = new LinkedList<LicenseValidator>();
|
||||
|
||||
/**
|
||||
|
@ -39,7 +39,7 @@ public class Dictionary extends HashMap<String, Object> {
|
||||
public String[] get_keys() {
|
||||
String[] ret = new String[size()];
|
||||
int i = 0;
|
||||
RBSet<String> keys = keySet();
|
||||
Set<String> keys = keySet();
|
||||
for (String key : keys) {
|
||||
ret[i] = key;
|
||||
i++;
|
||||
@ -51,7 +51,7 @@ public class Dictionary extends HashMap<String, Object> {
|
||||
public Object[] get_values() {
|
||||
Object[] ret = new Object[size()];
|
||||
int i = 0;
|
||||
RBSet<String> keys = keySet();
|
||||
Set<String> keys = keySet();
|
||||
for (String key : keys) {
|
||||
ret[i] = get(key);
|
||||
i++;
|
||||
|
@ -306,7 +306,7 @@ public class PandemoniumInputHandler implements InputManager.InputDeviceListener
|
||||
//Helps with creating new joypad mappings.
|
||||
Log.i(TAG, "=== New Input Device: " + joystick.name);
|
||||
|
||||
RBSet<Integer> already = new HashRBSet<>();
|
||||
Set<Integer> already = new HashSet<>();
|
||||
for (InputDevice.MotionRange range : device.getMotionRanges()) {
|
||||
boolean isJoystick = range.isFromSource(InputDevice.SOURCE_JOYSTICK);
|
||||
boolean isGamepad = range.isFromSource(InputDevice.SOURCE_GAMEPAD);
|
||||
|
@ -130,11 +130,11 @@ public abstract class PandemoniumPlugin {
|
||||
}
|
||||
|
||||
private static Map<String, SignalInfo> registerPluginWithPandemoniumNative(Object pluginObject,
|
||||
String pluginName, List<String> pluginMethods, RBSet<SignalInfo> pluginSignals,
|
||||
RBSet<String> pluginGDNativeLibrariesPaths) {
|
||||
String pluginName, List<String> pluginMethods, Set<SignalInfo> pluginSignals,
|
||||
Set<String> pluginGDNativeLibrariesPaths) {
|
||||
nativeRegisterSingleton(pluginName, pluginObject);
|
||||
|
||||
RBSet<Method> filteredMethods = new HashRBSet<>();
|
||||
Set<Method> filteredMethods = new HashSet<>();
|
||||
Class<?> clazz = pluginObject.getClass();
|
||||
|
||||
Method[] methods = clazz.getDeclaredMethods();
|
||||
@ -282,7 +282,7 @@ public abstract class PandemoniumPlugin {
|
||||
* Returns the list of signals to be exposed to Pandemonium.
|
||||
*/
|
||||
@NonNull
|
||||
public RBSet<SignalInfo> getPluginSignals() {
|
||||
public Set<SignalInfo> getPluginSignals() {
|
||||
return Collections.emptySet();
|
||||
}
|
||||
|
||||
@ -292,7 +292,7 @@ public abstract class PandemoniumPlugin {
|
||||
* The paths must be relative to the 'assets' directory and point to a '*.gdnlib' file.
|
||||
*/
|
||||
@NonNull
|
||||
protected RBSet<String> getPluginGDNativeLibrariesPaths() {
|
||||
protected Set<String> getPluginGDNativeLibrariesPaths() {
|
||||
return Collections.emptySet();
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,7 @@ public interface PandemoniumPluginInfoProvider {
|
||||
* Returns the list of signals to be exposed to Pandemonium.
|
||||
*/
|
||||
@NonNull
|
||||
default RBSet<SignalInfo> getPluginSignals() {
|
||||
default Set<SignalInfo> getPluginSignals() {
|
||||
return Collections.emptySet();
|
||||
}
|
||||
|
||||
@ -59,7 +59,7 @@ public interface PandemoniumPluginInfoProvider {
|
||||
* The paths must be relative to the 'assets' directory and point to a '*.gdnlib' file.
|
||||
*/
|
||||
@NonNull
|
||||
default RBSet<String> getPluginGDNativeLibrariesPaths() {
|
||||
default Set<String> getPluginGDNativeLibrariesPaths() {
|
||||
return Collections.emptySet();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user