Skip to content

Commit

Permalink
Clarifies a bit of the explanation on the login page.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vavassor committed Apr 2, 2017
1 parent eccebc9 commit e46e50a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/com/keylesspalace/tusky/LoginActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class LoginActivity extends AppCompatActivity {

@BindView(R.id.edit_text_domain) EditText editText;
@BindView(R.id.button_login) Button button;
@BindView(R.id.no_account) TextView noAccount;
@BindView(R.id.whats_an_instance) TextView whatsAnInstance;

private static String urlEncode(String string) {
try {
Expand Down Expand Up @@ -208,11 +208,11 @@ public void onClick(View v) {

final Context context = this;

noAccount.setOnClickListener(new View.OnClickListener() {
whatsAnInstance.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
AlertDialog dialog = new AlertDialog.Builder(context)
.setMessage(R.string.dialog_no_account)
.setMessage(R.string.dialog_whats_an_instance)
.setPositiveButton(R.string.action_close,
new DialogInterface.OnClickListener() {
@Override
Expand Down
6 changes: 4 additions & 2 deletions app/src/main/res/layout/activity_login.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@
<TextView
android:layout_width="250dp"
android:layout_height="wrap_content"
android:paddingTop="5dp"
android:textAlignment="center"
android:id="@+id/no_account"
android:text="@string/link_no_account" />
android:id="@+id/whats_an_instance"
android:text="@string/link_whats_an_instance" />

</LinearLayout>
</ScrollView>
15 changes: 9 additions & 6 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,16 @@
<string name="hint_compose">What\'s happening?</string>
<string name="hint_content_warning">Content warning</string>

<string name="link_no_account">No account?</string>
<string name="link_whats_an_instance">What\'s an instance?</string>

<string name="dialog_no_account">
Similar to an email address, a Mastodon account can be provided by any one of many
websites.\n\nSo the address of any instance can be entered here, which will direct you
there to either make an account or log in.\n\nMore can be found at
<a href="https://mastodon.social/about">mastodon.social</a>.
<string name="dialog_whats_an_instance">The address or domain of any instance can be entered
here, such as mastodon.social, icosahedron.website, social.tchncs.de, and
<a href="https://github.com/tootsuite/mastodon/blob/master/docs/Using-Mastodon/List-of-Mastodon-instances.md">more!</a>
\n\nIf you don\'t yet have an account, you can enter the name of the instance you\'d like to
join and create an account there.\n\nAn instance is a single place where your account is
hosted, but you can easily communicate with and follow folks on other instances as though
you were on the same site.
\n\nMore info can be found at <a href="https://mastodon.social/about">mastodon.social</a>.
</string>
<string name="dialog_title_finishing_media_upload">Finishing Media Upload</string>
<string name="dialog_message_uploading_media">Uploading…</string>
Expand Down

0 comments on commit e46e50a

Please sign in to comment.