mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-28 20:45:17 +00:00
dc60c011a6
Fixes #299 Closes #3456 // FREEBIE
22 lines
593 B
Java
22 lines
593 B
Java
package org.thoughtcrime.securesms.service;
|
|
|
|
import android.app.IntentService;
|
|
import android.content.Intent;
|
|
import android.support.annotation.Nullable;
|
|
|
|
import org.thoughtcrime.securesms.crypto.MasterSecret;
|
|
|
|
public abstract class MasterSecretIntentService extends IntentService {
|
|
|
|
public MasterSecretIntentService(String name) {
|
|
super(name);
|
|
}
|
|
|
|
@Override
|
|
protected final void onHandleIntent(Intent intent) {
|
|
onHandleIntent(intent, KeyCachingService.getMasterSecret(this));
|
|
}
|
|
|
|
protected abstract void onHandleIntent(Intent intent, @Nullable MasterSecret masterSecret);
|
|
}
|