mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-04 07:25:16 +00:00
3cdaf80c5d
Removed phone number utils. Slowly remove signal code.
27 lines
1.1 KiB
Java
27 lines
1.1 KiB
Java
package org.thoughtcrime.securesms.push;
|
|
|
|
import android.content.Context;
|
|
|
|
import org.thoughtcrime.securesms.util.TextSecurePreferences;
|
|
import org.whispersystems.signalservice.api.SignalServiceAccountManager;
|
|
|
|
import network.loki.messenger.BuildConfig;
|
|
|
|
public class AccountManagerFactory {
|
|
|
|
private static final String TAG = AccountManagerFactory.class.getSimpleName();
|
|
|
|
public static SignalServiceAccountManager createManager(Context context) {
|
|
return new SignalServiceAccountManager(new SignalServiceNetworkAccess(context).getConfiguration(context),
|
|
TextSecurePreferences.getLocalNumber(context),
|
|
TextSecurePreferences.getPushServerPassword(context),
|
|
BuildConfig.USER_AGENT);
|
|
}
|
|
|
|
public static SignalServiceAccountManager createManager(final Context context, String number, String password) {
|
|
return new SignalServiceAccountManager(new SignalServiceNetworkAccess(context).getConfiguration(number),
|
|
number, password, BuildConfig.USER_AGENT);
|
|
}
|
|
|
|
}
|