mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Removed redundant calls to setTextSize(14), which is the default.
This commit is contained in:
@@ -146,7 +146,6 @@ public class SetupActivity extends RoboActivity implements OnClickListener {
|
||||
|
||||
feedback = new TextView(this);
|
||||
feedback.setGravity(CENTER);
|
||||
feedback.setTextSize(14);
|
||||
feedback.setPadding(0, pad, 0, pad);
|
||||
feedback.setText("");
|
||||
layout.addView(feedback);
|
||||
|
||||
@@ -63,7 +63,6 @@ class ContactListAdapter extends ArrayAdapter<ContactListItem> {
|
||||
layout.addView(name);
|
||||
|
||||
TextView connected = new TextView(ctx);
|
||||
connected.setTextSize(14);
|
||||
connected.setPadding(0, pad, pad, pad);
|
||||
if(item.isConnected()) {
|
||||
connected.setText(R.string.contact_connected);
|
||||
|
||||
@@ -71,7 +71,6 @@ class ConversationAdapter extends ArrayAdapter<ConversationItem> {
|
||||
date.setLayoutParams(MATCH_WRAP);
|
||||
if(header.isLocal()) date.setGravity(RIGHT);
|
||||
else date.setGravity(LEFT);
|
||||
date.setTextSize(14);
|
||||
date.setTextColor(res.getColor(R.color.private_message_date));
|
||||
date.setBackgroundColor(background);
|
||||
date.setPadding(pad, 0, pad, pad);
|
||||
|
||||
@@ -119,7 +119,6 @@ implements OnClickListener {
|
||||
int pad = LayoutUtils.getPadding(this);
|
||||
|
||||
TextView date = new TextView(this);
|
||||
date.setTextSize(14);
|
||||
date.setPadding(0, pad, pad, pad);
|
||||
date.setText(DateUtils.getRelativeTimeSpanString(this, timestamp));
|
||||
header.addView(date);
|
||||
|
||||
@@ -60,7 +60,6 @@ class GroupAdapter extends ArrayAdapter<GroupItem> {
|
||||
headerLayout.addView(authorView);
|
||||
|
||||
TextView date = new TextView(ctx);
|
||||
date.setTextSize(14);
|
||||
date.setPadding(0, pad, pad, pad);
|
||||
long timestamp = header.getTimestamp();
|
||||
date.setText(DateUtils.getRelativeTimeSpanString(ctx, timestamp));
|
||||
|
||||
@@ -53,14 +53,12 @@ class GroupListAdapter extends ArrayAdapter<GroupListItem> {
|
||||
|
||||
if(item.isEmpty()) {
|
||||
TextView noPosts = new TextView(ctx);
|
||||
noPosts.setTextSize(14);
|
||||
noPosts.setPadding(pad, 0, pad, pad);
|
||||
noPosts.setTextColor(res.getColor(R.color.no_posts));
|
||||
noPosts.setText(R.string.no_posts);
|
||||
layout.addView(noPosts);
|
||||
} else {
|
||||
TextView date = new TextView(ctx);
|
||||
date.setTextSize(14);
|
||||
date.setPadding(pad, 0, pad, pad);
|
||||
long timestamp = item.getTimestamp();
|
||||
date.setText(DateUtils.getRelativeTimeSpanString(ctx, timestamp));
|
||||
|
||||
@@ -56,7 +56,6 @@ class ManageGroupsAdapter extends ArrayAdapter<ManageGroupsItem> {
|
||||
innerLayout.addView(name);
|
||||
|
||||
TextView status = new TextView(ctx);
|
||||
status.setTextSize(14);
|
||||
status.setPadding(0, 0, pad, pad);
|
||||
if(groupStatus.isSubscribed()) {
|
||||
if(groupStatus.isVisibleToAll())
|
||||
|
||||
@@ -116,7 +116,6 @@ implements OnClickListener {
|
||||
int pad = LayoutUtils.getPadding(this);
|
||||
|
||||
TextView date = new TextView(this);
|
||||
date.setTextSize(14);
|
||||
date.setPadding(0, pad, pad, pad);
|
||||
date.setText(DateUtils.getRelativeTimeSpanString(this, timestamp));
|
||||
header.addView(date);
|
||||
|
||||
@@ -64,7 +64,6 @@ implements OnItemSelectedListener, OnClickListener {
|
||||
addView(innerLayout);
|
||||
|
||||
TextView faceToFace = new TextView(ctx);
|
||||
faceToFace.setTextSize(14);
|
||||
faceToFace.setPadding(pad, pad, pad, pad);
|
||||
faceToFace.setText(R.string.face_to_face);
|
||||
addView(faceToFace);
|
||||
|
||||
@@ -43,7 +43,6 @@ implements OnEditorActionListener, OnClickListener {
|
||||
Context ctx = getContext();
|
||||
TextView enterCode = new TextView(ctx);
|
||||
enterCode.setGravity(CENTER_HORIZONTAL);
|
||||
enterCode.setTextSize(14);
|
||||
enterCode.setPadding(pad, pad, pad, 0);
|
||||
enterCode.setText(prompt);
|
||||
addView(enterCode);
|
||||
|
||||
@@ -43,7 +43,6 @@ class CodesDoNotMatchView extends AddContactView implements OnClickListener {
|
||||
|
||||
TextView interfering = new TextView(ctx);
|
||||
interfering.setGravity(CENTER);
|
||||
interfering.setTextSize(14);
|
||||
interfering.setPadding(pad, 0, pad, pad);
|
||||
interfering.setText(R.string.interfering);
|
||||
addView(interfering);
|
||||
|
||||
@@ -37,7 +37,6 @@ class ConfirmationCodeView extends AddContactView implements CodeEntryListener {
|
||||
|
||||
TextView yourCode = new TextView(ctx);
|
||||
yourCode.setGravity(CENTER_HORIZONTAL);
|
||||
yourCode.setTextSize(14);
|
||||
yourCode.setPadding(pad, pad, pad, pad);
|
||||
yourCode.setText(R.string.your_confirmation_code);
|
||||
addView(yourCode);
|
||||
|
||||
@@ -45,7 +45,6 @@ class ConnectionFailedView extends AddContactView implements OnClickListener {
|
||||
|
||||
TextView couldNotFind = new TextView(ctx);
|
||||
couldNotFind.setGravity(CENTER);
|
||||
couldNotFind.setTextSize(14);
|
||||
couldNotFind.setPadding(pad, 0, pad, pad);
|
||||
couldNotFind.setText(R.string.could_not_find_contact);
|
||||
addView(couldNotFind);
|
||||
|
||||
@@ -21,7 +21,6 @@ class ConnectionView extends AddContactView {
|
||||
Context ctx = getContext();
|
||||
TextView yourCode = new TextView(ctx);
|
||||
yourCode.setGravity(CENTER_HORIZONTAL);
|
||||
yourCode.setTextSize(14);
|
||||
yourCode.setPadding(pad, pad, pad, pad);
|
||||
yourCode.setText(R.string.your_invitation_code);
|
||||
addView(yourCode);
|
||||
|
||||
@@ -37,7 +37,6 @@ class ContactDetailsView extends AddContactView {
|
||||
|
||||
TextView yourCode = new TextView(ctx);
|
||||
yourCode.setGravity(CENTER_HORIZONTAL);
|
||||
yourCode.setTextSize(14);
|
||||
yourCode.setPadding(pad, 0, pad, pad);
|
||||
yourCode.setText(R.string.your_confirmation_code);
|
||||
addView(yourCode);
|
||||
|
||||
@@ -19,7 +19,6 @@ class InvitationCodeView extends AddContactView implements CodeEntryListener {
|
||||
Context ctx = getContext();
|
||||
TextView yourCode = new TextView(ctx);
|
||||
yourCode.setGravity(CENTER_HORIZONTAL);
|
||||
yourCode.setTextSize(14);
|
||||
yourCode.setPadding(pad, pad, pad, pad);
|
||||
yourCode.setText(R.string.your_invitation_code);
|
||||
addView(yourCode);
|
||||
|
||||
@@ -37,7 +37,6 @@ class WaitForContactView extends AddContactView {
|
||||
|
||||
TextView yourCode = new TextView(ctx);
|
||||
yourCode.setGravity(CENTER_HORIZONTAL);
|
||||
yourCode.setTextSize(14);
|
||||
yourCode.setPadding(pad, 0, pad, pad);
|
||||
yourCode.setText(R.string.your_confirmation_code);
|
||||
addView(yourCode);
|
||||
|
||||
Reference in New Issue
Block a user