Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android automatic refactor - ObsoleteLayoutParam #540

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Android automatic refactor - ObsoleteLayoutParam #540

wants to merge 1 commit into from

Conversation

luiscruz
Copy link

@luiscruz luiscruz commented Jan 6, 2017

Hi,

I am developing a tool to automatically refactor Android applications with the goal of improving energy efficiency.
This pull request has the changes generated while applying the rule "ObsoleteLayoutParam".

While developing your application's views you might be specifying attributes in a view's artefact that are not necessary due to the nature of its parent. In this PR, those attributes were replaced by a comment.

I have made a previous validation of the changes and they seem correct.
Unfortunately, this tool is not able keep the original whitespace of the files, so comparison without ignoring whitespace might be confusing.
Please consider the changes and let me know if you agree with them.

Best,
Luis

@lestofante
Copy link

this pr only removes android:layout_alignParentBottom="true" from java/res/layout/input_stone_popup.xml and java/res/layout/keyboard_popup.xml .
It also add </org.pocketworkstation.pckeyboard.LatinKeyboardBaseView> but maybe that is something that got removed in meantime and is added back because of whitespace issues

@luiscruz
Copy link
Author

luiscruz commented Feb 5, 2021

Indeed it only removes android:layout_alignParentBottom="true" from java/res/layout/input_stone_popup.xml and java/res/layout/keyboard_popup.xml. Does tags are supposed to be meaningless in the given context.

The </org.pocketworkstation.pckeyboard.LatinKeyboardBaseView> is not part of this PR. I think it is a legacy tag since this PR was done back in 2017.

Feel free to close this PR if it no longer makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants