mirror of
https://github.com/cwinfo/envayasms.git
synced 2025-04-16 13:08:20 +00:00
22 lines
509 B
Java
Executable File
22 lines
509 B
Java
Executable File
package org.envaya.sms.receiver;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import org.envaya.sms.App;
|
|
|
|
public class DequeueOutgoingMessageReceiver extends BroadcastReceiver {
|
|
|
|
@Override
|
|
public void onReceive(Context context, Intent intent) {
|
|
App app = (App) context.getApplicationContext();
|
|
|
|
if (!app.isEnabled())
|
|
{
|
|
return;
|
|
}
|
|
|
|
app.outbox.maybeDequeueMessage();
|
|
}
|
|
}
|