|
|
|
@ -16,14 +16,6 @@
|
|
|
|
|
*/
|
|
|
|
|
package org.thoughtcrime.securesms.service;
|
|
|
|
|
|
|
|
|
|
import java.util.Iterator;
|
|
|
|
|
import java.util.LinkedList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.crypto.MasterSecret;
|
|
|
|
|
import org.thoughtcrime.securesms.database.CanonicalSessionMigrator;
|
|
|
|
|
import org.thoughtcrime.securesms.util.WorkerThread;
|
|
|
|
|
|
|
|
|
|
import android.app.Service;
|
|
|
|
|
import android.content.BroadcastReceiver;
|
|
|
|
|
import android.content.ComponentName;
|
|
|
|
@ -33,11 +25,18 @@ import android.content.IntentFilter;
|
|
|
|
|
import android.content.ServiceConnection;
|
|
|
|
|
import android.os.Handler;
|
|
|
|
|
import android.os.IBinder;
|
|
|
|
|
import android.os.Looper;
|
|
|
|
|
import android.os.Message;
|
|
|
|
|
import android.util.Log;
|
|
|
|
|
import android.widget.Toast;
|
|
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.crypto.MasterSecret;
|
|
|
|
|
import org.thoughtcrime.securesms.database.CanonicalSessionMigrator;
|
|
|
|
|
import org.thoughtcrime.securesms.util.WorkerThread;
|
|
|
|
|
|
|
|
|
|
import java.util.Iterator;
|
|
|
|
|
import java.util.LinkedList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Services that handles sending/receiving of SMS/MMS.
|
|
|
|
|
*
|
|
|
|
@ -86,6 +85,8 @@ public class SendReceiveService extends Service {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onStart(Intent intent, int startId) {
|
|
|
|
|
if (intent == null) return;
|
|
|
|
|
|
|
|
|
|
if (intent.getAction().equals(SEND_SMS_ACTION))
|
|
|
|
|
scheduleSecretRequiredIntent(SEND_SMS, intent);
|
|
|
|
|
else if (intent.getAction().equals(RECEIVE_SMS_ACTION))
|
|
|
|
|