Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b051651 authored by kaiyiz's avatar kaiyiz
Browse files

Contacts: Text of accounts change dialog overlap.

Contacts is not allocating proper size for dialog where text overlap.
Change the button's ellipsize property to display all text.

Change-Id: I0596dfeb1f0446a50eb9730e8943cb129fcc0899
CRs-Fixed: 810352
parent bdfe0b54
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.provider.ContactsContract.Intents;
import android.text.TextUtils;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
@@ -117,6 +118,8 @@ public class ContactEditorAccountsChangedActivity extends Activity {
            // This button allows the user to add a new account to the device and return to
            // this app afterwards.
            leftButton.setText(getString(R.string.add_new_account));
            leftButton.setSingleLine(true);
            leftButton.setEllipsize(TextUtils.TruncateAt.END_SMALL);
            leftButton.setOnClickListener(mAddAccountClickListener);

            // This button allows the user to continue creating the contact in the specified