mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 02:55:23 +00:00
19 lines
543 B
Java
19 lines
543 B
Java
package org.thoughtcrime.securesms.service;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.os.Build;
|
|
|
|
public class BootReceiver extends BroadcastReceiver {
|
|
|
|
@Override
|
|
public void onReceive(Context context, Intent intent) {
|
|
if (intent != null && Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
|
|
Intent messageRetrievalService = new Intent(context, MessageRetrievalService.class);
|
|
context.startService(messageRetrievalService);
|
|
}
|
|
}
|
|
|
|
}
|