mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-01 05:55:18 +00:00
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);
|
||
|
}
|