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