-
Notifications
You must be signed in to change notification settings - Fork 528
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
Fixes #166: Story activity UI structure #195
Conversation
Changing base branch for now to show correct diff in the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @hareshkh! This is a great start. Is this ready for review now?
I left a couple of preliminary comments without knowing if a deeper review is needed yet.
app/src/main/java/org/oppia/app/story/StoryFragmentController.kt
Outdated
Show resolved
Hide resolved
@BenHenning, the PR is not ready for a deeper review yet, I have to add the RecyclerView. I am reading about a few things. I will try to do it ASAP. |
Hi @hareshkh. Have you made any recent progress on this? |
@hareshkh is this ready for me to look at again? If so, can you please merge the latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @hareshkh! Overall, the PR LGTM except the static state bit being added into StoryActivity. Let's resolve that.
Can you also attach some screenshots of what the new activity looks like in the initial comment of the PR to provide a visual reference?
app/src/main/java/org/oppia/app/recyclerview/BindableAdapter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/app/recyclerview/RecyclerViewBindingAdapter.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/app/story/StoryActivityTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/app/story/StoryActivityTest.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/app/story/StoryActivityTest.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @hareshkh! I think we can simplify this slightly after merging in develop since there were some downstream changes to the home activity.
app/src/main/java/org/oppia/app/recyclerview/RecyclerViewBindingAdapter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/app/story/StoryFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/app/story/StoryActivityTest.kt
Outdated
Show resolved
Hide resolved
Conflicts: app/src/main/AndroidManifest.xml app/src/main/java/org/oppia/app/databinding/DrawableBindingAdapters.kt app/src/main/java/org/oppia/app/home/HomeFragmentPresenter.kt app/src/main/res/drawable/rounded_rect_background.xml app/src/main/res/layout/home_fragment.xml app/src/main/res/values/strings.xml
…android into story-activity-ui-structure Conflicts: app/src/main/java/org/oppia/app/home/HomeFragmentPresenter.kt app/src/main/res/layout/home_fragment.xml
isolating story fragment tests), and miscellaneous tweaks.
don't set up the intent properly.
All remaining changes seem addressed. @rt4914 can you verify just the new commits briefly to make sure another pair of eyes verifies them? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Test cases are working.
Some nit changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One test related comment
Explanation
Checklist