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

Jump to ayah by typing text: rename variables #822

Merged
merged 8 commits into from Mar 20, 2017
Merged

Conversation

fikr4n
Copy link
Contributor

@fikr4n fikr4n commented Mar 20, 2017

Changes:

  • Rename variables and add some comment/javadoc to avoid confusion of those who read this code
  • Use lambda

int selectedSura = (int) suraInput.getTag();
int selectedAyah = (int) ayahInput.getTag();

if (activity instanceof QuranActivity) {
Copy link
Contributor

Choose a reason for hiding this comment

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

i know this is existing but we should really clean this up. implement an interface in both QuranActivity and PagerActivity and just be like if it's this interface call jumpAndHighlight

Copy link
Contributor

@ahmedre ahmedre left a comment

Choose a reason for hiding this comment

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

jazakAllah khairan!

@ahmedre ahmedre merged commit 2d67f2e into quran:master Mar 20, 2017
@fikr4n fikr4n deleted the text_jump branch March 20, 2017 07:35
@fikr4n
Copy link
Contributor Author

fikr4n commented Mar 20, 2017

وجزاك الله خيرا

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