This commit is contained in:
Niels Andriesse 2020-01-23 16:48:03 +11:00
parent 42b4ce1112
commit 5bcf7940a0
23 changed files with 29 additions and 33 deletions

View File

@ -29,7 +29,7 @@
android:layout_marginRight="@dimen/very_large_spacing" android:layout_marginRight="@dimen/very_large_spacing"
android:textSize="@dimen/medium_font_size" android:textSize="@dimen/medium_font_size"
android:textColor="@color/text" android:textColor="@color/text"
android:text="This is how others will be able to recognize you." /> android:text="This will be your name when you use Session." />
<EditText <EditText
style="@style/SessionEditText" style="@style/SessionEditText"

View File

@ -39,7 +39,7 @@
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"
android:layout_marginLeft="@dimen/massive_spacing" android:layout_marginLeft="@dimen/massive_spacing"
android:layout_marginRight="@dimen/massive_spacing" android:layout_marginRight="@dimen/massive_spacing"
android:text="Create Account" /> android:text="Create Session ID" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/MediumProminentOutlineButton"

View File

@ -29,7 +29,7 @@
android:layout_marginRight="@dimen/very_large_spacing" android:layout_marginRight="@dimen/very_large_spacing"
android:textSize="@dimen/medium_font_size" android:textSize="@dimen/medium_font_size"
android:textColor="@color/text" android:textColor="@color/text"
android:text="Your Session ID is the unique address that people can use to contact you on Session. With no connection to your real identity, your Session ID is totally anonymous and private by design." /> android:text="Your Session ID is the unique address people can use to contact you on Session. With no connection to your real identity, your Session ID is totally anonymous and private by design." />
<TextView <TextView
style="@style/SessionIDTextView" style="@style/SessionIDTextView"

View File

@ -35,7 +35,7 @@
android:layout_marginRight="@dimen/very_large_spacing" android:layout_marginRight="@dimen/very_large_spacing"
android:textSize="@dimen/medium_font_size" android:textSize="@dimen/medium_font_size"
android:textColor="@color/text" android:textColor="@color/text"
android:text="Think of this as the crypto-equivalent of a social security number. This allows whomever has it complete access to your account." /> android:text="Your recovery phrase is the master key to your Session ID — you can use it to restore your Session ID if you lose access to your device. Store your recovery phrase in a safe place, and dont give it to anyone. To restore your Session ID, launch Session and tap Continue your Session." />
<TextView <TextView
style="@style/SessionIDTextView" style="@style/SessionIDTextView"

View File

@ -28,7 +28,7 @@
android:textColor="@color/text" android:textColor="@color/text"
android:alpha="0.6" android:alpha="0.6"
android:textAlignment="center" android:textAlignment="center"
android:text="Enter the URL of the channel you'd like to join" /> android:text="Enter an open group URL" />
<View <View
android:layout_width="0dp" android:layout_width="0dp"

View File

@ -29,7 +29,7 @@
android:layout_marginRight="@dimen/very_large_spacing" android:layout_marginRight="@dimen/very_large_spacing"
android:textSize="@dimen/small_font_size" android:textSize="@dimen/small_font_size"
android:textColor="@color/text" android:textColor="@color/text"
android:text="This is how others will be able to recognize you." /> android:text="This will be your name when you use Session." />
<EditText <EditText
style="@style/SmallSessionEditText" style="@style/SmallSessionEditText"

View File

@ -39,7 +39,7 @@
android:layout_height="@dimen/medium_button_height" android:layout_height="@dimen/medium_button_height"
android:layout_marginLeft="@dimen/massive_spacing" android:layout_marginLeft="@dimen/massive_spacing"
android:layout_marginRight="@dimen/massive_spacing" android:layout_marginRight="@dimen/massive_spacing"
android:text="Create Account" /> android:text="Create Session ID" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/MediumProminentOutlineButton"

View File

@ -23,7 +23,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textSize="@dimen/medium_font_size" android:textSize="@dimen/medium_font_size"
android:textColor="@color/text" android:textColor="@color/text"
android:text="You don't have any linked devices yet" /> android:text="You haven't linked any devices yet" />
<Button <Button
style="@style/MediumProminentOutlineButton" style="@style/MediumProminentOutlineButton"

View File

@ -29,7 +29,7 @@
android:layout_marginRight="@dimen/very_large_spacing" android:layout_marginRight="@dimen/very_large_spacing"
android:textSize="@dimen/small_font_size" android:textSize="@dimen/small_font_size"
android:textColor="@color/text" android:textColor="@color/text"
android:text="Your Session ID is the unique address that people can use to contact you on Session. With no connection to your real identity, your Session ID is totally anonymous and private by design." /> android:text="Your Session ID is the unique address people can use to contact you on Session. With no connection to your real identity, your Session ID is totally anonymous and private by design." />
<TextView <TextView
style="@style/SessionIDTextView" style="@style/SessionIDTextView"

View File

@ -35,7 +35,7 @@
android:layout_marginRight="@dimen/very_large_spacing" android:layout_marginRight="@dimen/very_large_spacing"
android:textSize="@dimen/medium_font_size" android:textSize="@dimen/medium_font_size"
android:textColor="@color/text" android:textColor="@color/text"
android:text="Think of this as the crypto-equivalent of a social security number. This allows whomever has it complete access to your account." /> android:text="Your recovery phrase is the master key to your Session ID — you can use it to restore your Session ID if you lose access to your device. Store your recovery phrase in a safe place, and dont give it to anyone. To restore your Session ID, launch Session and tap Continue your Session." />
<TextView <TextView
style="@style/SessionIDTextView" style="@style/SessionIDTextView"

View File

@ -219,7 +219,7 @@
android:textSize="@dimen/medium_font_size" android:textSize="@dimen/medium_font_size"
android:textStyle="bold" android:textStyle="bold"
android:gravity="center" android:gravity="center"
android:text="Linked Devices" /> android:text="Devices" />
<View <View
android:id="@+id/seedButtonTopSeparator" android:id="@+id/seedButtonTopSeparator"
@ -236,7 +236,7 @@
android:textSize="@dimen/medium_font_size" android:textSize="@dimen/medium_font_size"
android:textStyle="bold" android:textStyle="bold"
android:gravity="center" android:gravity="center"
android:text="Show Recovery Phrase" /> android:text="Recovery Phrase" />
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@ -24,7 +24,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/large_spacing" android:layout_marginTop="@dimen/large_spacing"
android:text="This will delete your entire account, including all data, any messages currently linked to your Session ID, as well as your personal key pair." android:text="This will permanently delete your Session ID, including all messages, sessions, and contacts."
android:textColor="@color/text" android:textColor="@color/text"
android:textSize="@dimen/small_font_size" android:textSize="@dimen/small_font_size"
android:textAlignment="center" /> android:textAlignment="center" />

View File

@ -39,7 +39,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/large_spacing" android:layout_marginTop="@dimen/large_spacing"
android:text="Create a new account on your other device and click &quot;Link to an existing account&quot; to start the linking process" android:text="Open Session on your secondary device and tap &quot;Link to an existing account&quot;"
android:textColor="@color/text" android:textColor="@color/text"
android:alpha="0.6" android:alpha="0.6"
android:textSize="@dimen/small_font_size" android:textSize="@dimen/small_font_size"

View File

@ -33,7 +33,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/large_spacing" android:layout_marginTop="@dimen/large_spacing"
android:text="This is your personal recovery phrase. It can be used to restore your account or migrate your account to a new device." android:text="This is your recovery phrase. With it, you can restore or migrate your Session ID to a new device."
android:textColor="@color/text" android:textColor="@color/text"
android:textSize="@dimen/small_font_size" android:textSize="@dimen/small_font_size"
android:textAlignment="center" android:textAlignment="center"

View File

@ -28,7 +28,7 @@
android:textColor="@color/text" android:textColor="@color/text"
android:alpha="0.6" android:alpha="0.6"
android:textAlignment="center" android:textAlignment="center"
android:text="Enter the URL of the channel you'd like to join" /> android:text="Enter an open group URL" />
<View <View
android:layout_width="0dp" android:layout_width="0dp"

View File

@ -31,7 +31,7 @@
android:padding="@dimen/very_large_spacing" android:padding="@dimen/very_large_spacing"
android:gravity="center" android:gravity="center"
android:background="@color/navigation_bar_background" android:background="@color/navigation_bar_background"
android:text="Users can share their QR code by going into their account settings and tapping &quot;Share QR Code&quot;" android:text="Scan a users QR code to start a session. QR codes can be found by tapping the QR code icon in account settings."
android:textSize="@dimen/small_font_size" android:textSize="@dimen/small_font_size"
android:textColor="@color/text" /> android:textColor="@color/text" />

View File

@ -54,7 +54,7 @@
android:textSize="@dimen/medium_font_size" android:textSize="@dimen/medium_font_size"
android:textColor="@color/text" android:textColor="@color/text"
android:textAlignment="center" android:textAlignment="center"
android:text="This is your unique public QR code. Other users can scan this to start a conversation with you." /> android:text="This is your QR code. Other users can scan it to start a session with you." />
<Button <Button
style="@style/MediumUnimportantOutlineButton" style="@style/MediumUnimportantOutlineButton"

View File

@ -22,7 +22,7 @@
android:layout_width="@dimen/fake_chat_view_bubble_width" android:layout_width="@dimen/fake_chat_view_bubble_width"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/medium_spacing" android:layout_marginTop="@dimen/medium_spacing"
android:text="It's a secure, decentralized private messaging app" android:text="It's a decentralized, encrypted messaging app"
android:layout_gravity="left" /> android:layout_gravity="left" />
<TextView <TextView

View File

@ -34,7 +34,7 @@ class CreatePrivateChatActivity : PassphraseRequiredActionBarActivity(), ScanQRC
// Set content view // Set content view
setContentView(R.layout.activity_create_private_chat) setContentView(R.layout.activity_create_private_chat)
// Set title // Set title
supportActionBar!!.title = "New Conversation" supportActionBar!!.title = "New Session"
// Set up view pager // Set up view pager
viewPager.adapter = adapter viewPager.adapter = adapter
tabLayout.setupWithViewPager(viewPager) tabLayout.setupWithViewPager(viewPager)
@ -78,7 +78,7 @@ private class CreatePrivateChatActivityAdapter(val activity: CreatePrivateChatAc
1 -> { 1 -> {
val result = ScanQRCodeWrapperFragment() val result = ScanQRCodeWrapperFragment()
result.delegate = activity result.delegate = activity
result.message = "Users can share their QR code by going into their account settings and tapping \"Share QR Code\"" result.message = "Scan a users QR code to start a session. QR codes can be found by tapping the QR code icon in account settings."
result result
} }
else -> throw IllegalStateException() else -> throw IllegalStateException()

View File

@ -33,7 +33,7 @@ class JoinPublicChatActivity : PassphraseRequiredActionBarActivity(), ScanQRCode
// Set content view // Set content view
setContentView(R.layout.activity_join_public_chat) setContentView(R.layout.activity_join_public_chat)
// Set title // Set title
supportActionBar!!.title = "Join Channel" supportActionBar!!.title = "Join Open Group"
// Set up view pager // Set up view pager
viewPager.adapter = adapter viewPager.adapter = adapter
tabLayout.setupWithViewPager(viewPager) tabLayout.setupWithViewPager(viewPager)
@ -100,7 +100,7 @@ private class JoinPublicChatActivityAdapter(val activity: JoinPublicChatActivity
1 -> { 1 -> {
val result = ScanQRCodeWrapperFragment() val result = ScanQRCodeWrapperFragment()
result.delegate = activity result.delegate = activity
result.message = "Scan the QR code of the channel you'd like to join" result.message = "Scan the QR code of the open group you'd like to join"
result result
} }
else -> throw IllegalStateException() else -> throw IllegalStateException()
@ -109,7 +109,7 @@ private class JoinPublicChatActivityAdapter(val activity: JoinPublicChatActivity
override fun getPageTitle(index: Int): CharSequence? { override fun getPageTitle(index: Int): CharSequence? {
return when (index) { return when (index) {
0 -> "Enter Channel URL" 0 -> "Open Group URL"
1 -> "Scan QR Code" 1 -> "Scan QR Code"
else -> throw IllegalStateException() else -> throw IllegalStateException()
} }

View File

@ -43,7 +43,7 @@ class LinkedDevicesActivity : PassphraseRequiredActionBarActivity, LoaderManager
override fun onCreate(savedInstanceState: Bundle?, isReady: Boolean) { override fun onCreate(savedInstanceState: Bundle?, isReady: Boolean) {
super.onCreate(savedInstanceState, isReady) super.onCreate(savedInstanceState, isReady)
setContentView(R.layout.activity_linked_devices) setContentView(R.layout.activity_linked_devices)
supportActionBar!!.title = "Linked Devices" supportActionBar!!.title = "Devices"
recyclerView.adapter = linkedDevicesAdapter recyclerView.adapter = linkedDevicesAdapter
recyclerView.layoutManager = LinearLayoutManager(this) recyclerView.layoutManager = LinearLayoutManager(this)
linkDeviceButton.setOnClickListener { linkDevice() } linkDeviceButton.setOnClickListener { linkDevice() }

View File

@ -3,14 +3,10 @@ package org.thoughtcrime.securesms.loki.redesign.activities
import android.Manifest import android.Manifest
import android.content.Intent import android.content.Intent
import android.graphics.Bitmap import android.graphics.Bitmap
import android.graphics.Typeface
import android.os.Bundle import android.os.Bundle
import android.os.Environment import android.os.Environment
import android.support.v4.app.Fragment import android.support.v4.app.Fragment
import android.support.v4.app.FragmentPagerAdapter import android.support.v4.app.FragmentPagerAdapter
import android.text.Spannable
import android.text.SpannableStringBuilder
import android.text.style.StyleSpan
import android.view.LayoutInflater import android.view.LayoutInflater
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
@ -124,9 +120,9 @@ class ViewMyQRCodeFragment : Fragment() {
val size = toPx(280, resources) val size = toPx(280, resources)
val qrCode = QRCodeUtilities.encode(hexEncodedPublicKey, size, false, false) val qrCode = QRCodeUtilities.encode(hexEncodedPublicKey, size, false, false)
qrCodeImageView.setImageBitmap(qrCode) qrCodeImageView.setImageBitmap(qrCode)
val explanation = SpannableStringBuilder("This is your unique public QR code. Other users can scan this to start a conversation with you.") // val explanation = SpannableStringBuilder("This is your unique public QR code. Other users can scan this to start a conversation with you.")
explanation.setSpan(StyleSpan(Typeface.BOLD), 8, 34, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE) // explanation.setSpan(StyleSpan(Typeface.BOLD), 8, 34, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE)
explanationTextView.text = explanation explanationTextView.text = "This is your QR code. Other users can scan it to start a session with you."
shareButton.setOnClickListener { shareQRCode() } shareButton.setOnClickListener { shareQRCode() }
} }

View File

@ -38,7 +38,7 @@ class SeedActivity : BaseActionBarActivity() {
val seedReminderViewTitle = SpannableString("You're almost finished! 90%") val seedReminderViewTitle = SpannableString("You're almost finished! 90%")
seedReminderViewTitle.setSpan(ForegroundColorSpan(resources.getColorWithID(R.color.accent, theme)), 24, 27, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE) seedReminderViewTitle.setSpan(ForegroundColorSpan(resources.getColorWithID(R.color.accent, theme)), 24, 27, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE)
seedReminderView.title = seedReminderViewTitle seedReminderView.title = seedReminderViewTitle
seedReminderView.subtitle = "Press the redacted words to view your recovery phrase and secure your account" seedReminderView.subtitle = "Tap and hold the redacted words to reveal your recovery phrase, then store it safely to secure your Session ID."
seedReminderView.setProgress(90, false) seedReminderView.setProgress(90, false)
seedReminderView.hideContinueButton() seedReminderView.hideContinueButton()
var redactedSeed = seed var redactedSeed = seed