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

Improvements #29

Closed
wants to merge 1 commit into from
Closed

Improvements #29

wants to merge 1 commit into from

Conversation

Maxr1998
Copy link
Contributor

Test if Views are available (to prevent Exceptions in custom layouts), improve permission update handling, temporarily fix after-rotation lock bug #20 (I hope).

Test if Views are available (to prevent Exceptions in custom layouts), improve permission update handling, temporarily fix after-rotation lock bug.
@Maxr1998
Copy link
Contributor Author

Why didn't you merge this PR?
I wasn't only thought to fix #20, it also improved code cleanliness (merged an if/else into a conditional allocation), error handling and permission handling.

@janheinrichmerker
Copy link
Owner

The conditional allocation doesn't improve code readability. And in terms of performance there won't be any measurable difference between this and the if-else-statement.

@janheinrichmerker
Copy link
Owner

The error handling is already part of the latest code.

@Maxr1998
Copy link
Contributor Author

Oh, I didn't see that. Still, you should take a look at the way I handle background luminance specific text color, that part is pretty duplicated. The new error handling is better than mine for code readability, of course.

@janheinrichmerker
Copy link
Owner

I removed redundancy in this commit: f525022

Edit: fixed a bug in that commit by this commit: cb45cd1

@Maxr1998
Copy link
Contributor Author

Maxr1998 commented Apr 3, 2016

Thanks! The code now is a lot cleaner :)

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

Successfully merging this pull request may close these issues.

2 participants