Fix some warnings
This commit is contained in:
parent
661ef08e58
commit
2dbf4b2a23
|
@ -2,6 +2,8 @@
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="eu.worn.apps.androvac">
|
package="eu.worn.apps.androvac">
|
||||||
|
|
||||||
|
<uses-permission android:name="android.permission.TRANSMIT_IR" />
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
|
@ -18,6 +20,4 @@
|
||||||
</activity>
|
</activity>
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.TRANSMIT_IR" />
|
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
|
@ -9,7 +9,7 @@ public class AndroidIRBeamer implements IRBeamer {
|
||||||
|
|
||||||
public AndroidIRBeamer(Activity act) {
|
public AndroidIRBeamer(Activity act) {
|
||||||
Context ctx = act.getApplicationContext();
|
Context ctx = act.getApplicationContext();
|
||||||
cim = (ConsumerIrManager) ctx.getSystemService(ctx.CONSUMER_IR_SERVICE);
|
cim = (ConsumerIrManager) ctx.getSystemService(Context.CONSUMER_IR_SERVICE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isAvailable() { return cim.hasIrEmitter(); }
|
public boolean isAvailable() { return cim.hasIrEmitter(); }
|
||||||
|
|
|
@ -5,7 +5,7 @@ import java.util.Calendar;
|
||||||
public class RoboVac11sRemote {
|
public class RoboVac11sRemote {
|
||||||
public IRModulation modulation = new EufyIRModulation();
|
public IRModulation modulation = new EufyIRModulation();
|
||||||
|
|
||||||
private Calendar schedule = null;
|
private Calendar schedule;
|
||||||
|
|
||||||
private byte[] buildMessage(byte command) {
|
private byte[] buildMessage(byte command) {
|
||||||
byte msg[] = new byte[6];
|
byte msg[] = new byte[6];
|
||||||
|
|
Loading…
Reference in New Issue