Search in sources :

Example 1 with SignalServiceNetworkAccess

use of org.thoughtcrime.securesms.push.SignalServiceNetworkAccess in project Signal-Android by WhisperSystems.

the class PassphraseRequiredActionBarActivity method onCreate.

@Override
protected final void onCreate(Bundle savedInstanceState) {
    Log.w(TAG, "onCreate(" + savedInstanceState + ")");
    this.networkAccess = new SignalServiceNetworkAccess(this);
    onPreCreate();
    final MasterSecret masterSecret = KeyCachingService.getMasterSecret(this);
    routeApplicationState(masterSecret);
    super.onCreate(savedInstanceState);
    if (!isFinishing()) {
        initializeClearKeyReceiver();
        onCreate(savedInstanceState, masterSecret);
    }
}
Also used : MasterSecret(org.thoughtcrime.securesms.crypto.MasterSecret) SignalServiceNetworkAccess(org.thoughtcrime.securesms.push.SignalServiceNetworkAccess)

Example 2 with SignalServiceNetworkAccess

use of org.thoughtcrime.securesms.push.SignalServiceNetworkAccess in project Signal-Android by WhisperSystems.

the class WebRtcCallActivity method initializeResources.

private void initializeResources() {
    callScreen = ViewUtil.findById(this, R.id.callScreen);
    callScreen.setHangupButtonListener(new HangupButtonListener());
    callScreen.setIncomingCallActionListener(new IncomingCallActionListener());
    callScreen.setAudioMuteButtonListener(new AudioMuteButtonListener());
    callScreen.setVideoMuteButtonListener(new VideoMuteButtonListener());
    callScreen.setSpeakerButtonListener(new SpeakerButtonListener());
    callScreen.setBluetoothButtonListener(new BluetoothButtonListener());
    networkAccess = new SignalServiceNetworkAccess(this);
}
Also used : SignalServiceNetworkAccess(org.thoughtcrime.securesms.push.SignalServiceNetworkAccess)

Aggregations

SignalServiceNetworkAccess (org.thoughtcrime.securesms.push.SignalServiceNetworkAccess)2 MasterSecret (org.thoughtcrime.securesms.crypto.MasterSecret)1