Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

style: change and apply spotless with indentation 4 spaces #64

Merged
merged 2 commits into from
Jun 25, 2019

Conversation

immadisairaj
Copy link
Member

@immadisairaj immadisairaj commented Jun 25, 2019

Fixed #63

Changes:
Changed the spotless style in gradle
applied spotless
removed unnecessary typecasting
made xml files in proper format

totalLayout.setVisibility(View.VISIBLE);
flag = 0;
Toast.makeText(
getBaseContext(), getString(R.string.delete_donated), Toast.LENGTH_LONG)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like too much indentation. I think 2 space indentation is good enough.

Copy link
Member Author

@immadisairaj immadisairaj Jun 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those has to be in same line. I guess that is the reason it is giving that big indentation.
Else everything is fine.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I saw other changes too. I thought that 4 tabs are too much. According to me, 2 are enough.

radioGroup = (RadioGroup) findViewById(R.id.radiogroup);

radioGroup.setOnCheckedChangeListener(
new RadioGroup.OnCheckedChangeListener() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For instance here. 4 tabs are too much. 2 are enough.

private EditText uid1ET;

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yashk2000 suppose if you see here 2 space indentation doesn't look good

@yashk2000
Copy link
Member

@immadisairaj yes. I viewed it in andorid studio. There is looks better 👍

@immadisairaj immadisairaj merged commit 7044163 into amfoss:development Jun 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

change and indentation for spotless to 4
2 participants