mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-30 00:01:19 +00:00
Fixed lint warnings.
This commit is contained in:
parent
e49affe844
commit
bb17c53d4c
2 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
package="com.nutomic.syncthingandroid">
|
package="com.nutomic.syncthingandroid">
|
||||||
|
|
||||||
<uses-feature android:name="android.software.leanback" android:required="false" />
|
<uses-feature android:name="android.software.leanback" android:required="false" />
|
||||||
|
@ -91,7 +92,8 @@
|
||||||
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</receiver>
|
</receiver>
|
||||||
<receiver android:name=".syncthing.AppConfigReceiver">
|
<receiver android:name=".syncthing.AppConfigReceiver"
|
||||||
|
tools:ignore="ExportedReceiver">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="com.nutomic.syncthingandroid.action.START" />
|
<action android:name="com.nutomic.syncthingandroid.action.START" />
|
||||||
<action android:name="com.nutomic.syncthingandroid.action.STOP" />
|
<action android:name="com.nutomic.syncthingandroid.action.STOP" />
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package com.nutomic.syncthingandroid.syncthing;
|
package com.nutomic.syncthingandroid.syncthing;
|
||||||
|
|
||||||
|
import android.annotation.TargetApi;
|
||||||
import android.app.Notification;
|
import android.app.Notification;
|
||||||
import android.app.NotificationManager;
|
import android.app.NotificationManager;
|
||||||
import android.app.PendingIntent;
|
import android.app.PendingIntent;
|
||||||
|
@ -33,6 +34,7 @@ public class AppConfigReceiver extends BroadcastReceiver {
|
||||||
public static final String ACTION_STOP = "com.nutomic.syncthingandroid.action.STOP";
|
public static final String ACTION_STOP = "com.nutomic.syncthingandroid.action.STOP";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@TargetApi(21)
|
||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
switch (intent.getAction()) {
|
switch (intent.getAction()) {
|
||||||
case ACTION_START:
|
case ACTION_START:
|
||||||
|
|
Loading…
Reference in a new issue