-
Notifications
You must be signed in to change notification settings - Fork 534
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 part of #123, #116, and #130: Cellular Data Controller #194
Conversation
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 @jamesxu0! Structurally this looks great, but I have some concerns about whether we're modeling the right things here. See my comment on the proto change for context.
domain/src/main/java/org/oppia/domain/audio/CellularDialogController.kt
Outdated
Show resolved
Hide resolved
domain/src/test/java/org/oppia/domain/audio/CellularDialogControllerTest.kt
Show resolved
Hide resolved
domain/src/test/java/org/oppia/domain/audio/CellularDialogControllerTest.kt
Outdated
Show resolved
Hide resolved
domain/src/test/java/org/oppia/domain/audio/CellularDialogControllerTest.kt
Outdated
Show resolved
Hide resolved
domain/src/test/java/org/oppia/domain/audio/CellularDialogControllerTest.kt
Show resolved
Hide resolved
@BenHenning PTAL. Added a use_cellular_data preference that is used to determine whether to play audio if you don't want to show the dialog again. Also, updated test cases. |
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 @jamesxu0! I'm hoping there are a few UI tests that can be added and I have one concern with saving preferences, but otherwise the PR looks good to me.
domain/src/main/java/org/oppia/domain/audio/CellularDialogController.kt
Outdated
Show resolved
Hide resolved
@BenHenning PTAL. Added a suite of test cases for StateFragment. |
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 @jamesxu0 --excellent tests! This generally looks good. Can you also record a few videos in Android Studio with your emulator showing the different flows? That would be nice to help provide visual context for this work.
Feel free to submit once comments are resolved, or re-assign to me if you want me to do one more pass. Generally I think this looks good though.
app/src/main/java/org/oppia/app/player/state/testing/StateFragmentTestActivityPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/sharedTest/java/org/oppia/app/player/state/StateFragmentTest.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/domain/audio/CellularDialogController.kt
Outdated
Show resolved
Hide resolved
@BenHenning @jamesxu0 Do we actually need this? |
@rt4914 @BenHenning I made a testing folder to contain the activity and presenter that is used in the espresso StateFragment tests. Ben said he ran into a lot of problems using FragmentScenario, so I created a separate activity to start StateFragment for testing purposes. |
Explanation
Fixes part of #123, #116, and #130. Adds a cellular data controller to store and retrieve a preference on whether to show the CellularDataFragment.
Checklist