@ -96,6 +96,7 @@ class SettingsActivity : PassphraseRequiredActionBarActivity() {
notificationsButton . setOnClickListener { showNotificationSettings ( ) }
notificationsButton . setOnClickListener { showNotificationSettings ( ) }
chatsButton . setOnClickListener { showChatSettings ( ) }
chatsButton . setOnClickListener { showChatSettings ( ) }
// linkedDevicesButton.setOnClickListener { showLinkedDevices() }
// linkedDevicesButton.setOnClickListener { showLinkedDevices() }
sendInvitationButton . setOnClickListener { sendInvitation ( ) }
seedButton . setOnClickListener { showSeed ( ) }
seedButton . setOnClickListener { showSeed ( ) }
clearAllDataButton . setOnClickListener { clearAllData ( ) }
clearAllDataButton . setOnClickListener { clearAllData ( ) }
versionTextView . text = String . format ( getString ( R . string . version _s ) , " ${BuildConfig.VERSION_NAME} ( ${BuildConfig.VERSION_CODE} ) " )
versionTextView . text = String . format ( getString ( R . string . version _s ) , " ${BuildConfig.VERSION_NAME} ( ${BuildConfig.VERSION_CODE} ) " )
@ -292,6 +293,15 @@ class SettingsActivity : PassphraseRequiredActionBarActivity() {
push ( intent )
push ( intent )
}
}
private fun sendInvitation ( ) {
val intent = Intent ( )
intent . action = Intent . ACTION _SEND
val invitation = " Hey, I've been using Session to chat with complete privacy and security. Come join me! Download it at https://getsession.org/. My Session ID is $hexEncodedPublicKey ! "
intent . putExtra ( Intent . EXTRA _TEXT , invitation )
intent . type = " text/plain "
startActivity ( intent )
}
private fun showSeed ( ) {
private fun showSeed ( ) {
SeedDialog ( ) . show ( supportFragmentManager , " Recovery Phrase Dialog " )
SeedDialog ( ) . show ( supportFragmentManager , " Recovery Phrase Dialog " )
}
}