1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2025-01-10 20:15:54 +00:00

Moved BootReceiver into receiver package

This commit is contained in:
Felix Ableitner 2016-10-31 18:24:04 +09:00
parent a64392922d
commit 0f870bb216
3 changed files with 6 additions and 4 deletions

View file

@ -5,7 +5,7 @@ import android.preference.PreferenceManager;
import android.support.test.InstrumentationRegistry;
import android.support.test.rule.ServiceTestRule;
import com.nutomic.syncthingandroid.syncthing.BootReceiver;
import com.nutomic.syncthingandroid.receiver.BootReceiver;
import com.nutomic.syncthingandroid.syncthing.SyncthingService;
import com.nutomic.syncthingandroid.test.MockContext;
@ -16,7 +16,7 @@ import org.junit.Rule;
import org.junit.Test;
/**
* Tests that {@link com.nutomic.syncthingandroid.syncthing.BootReceiver} starts the right service
* Tests that {@link BootReceiver} starts the right service
* ({@link com.nutomic.syncthingandroid.syncthing.SyncthingService}.
*/
public class BootReceiverTest {

View file

@ -92,7 +92,7 @@
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED" />
</intent-filter>
</receiver>
<receiver android:name=".syncthing.BootReceiver">
<receiver android:name=".receiver.BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>

View file

@ -1,9 +1,11 @@
package com.nutomic.syncthingandroid.syncthing;
package com.nutomic.syncthingandroid.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.nutomic.syncthingandroid.syncthing.SyncthingService;
public class BootReceiver extends BroadcastReceiver {
@Override