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

Fix #11: Introduce Oppia splash screen. #60

Merged
merged 60 commits into from
Oct 1, 2019
Merged

Fix #11: Introduce Oppia splash screen. #60

merged 60 commits into from
Oct 1, 2019

Conversation

veena14cs
Copy link
Contributor

@veena14cs veena14cs commented Aug 21, 2019

Completed
Created splash screen.
Added splash logo.

Check list

  • Faded transition when loading home page

  • Handling Configuration changes

This is to avoid black or white screen when app is launched and resources are not yet initialized
- Used hyperLog library to store app logs in local file.
- Logger class is used to log files in entire application
- OppiaApplication class is created to initialize hyperlog
@veena14cs veena14cs changed the title Fix #4 : Oppia splash screen Fix #4 : Oppia splash screen . Fix Logging system #8 Aug 21, 2019
@veena14cs veena14cs changed the title Fix #4 : Oppia splash screen . Fix Logging system #8 Fix #4 : Oppia splash screen. Aug 21, 2019
@BenHenning BenHenning changed the title Fix #4 : Oppia splash screen. Fix #11: Oppia splash screen. Aug 22, 2019
@BenHenning BenHenning self-requested a review August 22, 2019 02:17
@BenHenning
Copy link
Member

@veena14cs can you please extract the logging API introduction to its own pull request? We should keep these pull requests as focused as possible to make them easier to review.

Copy link
Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @veena14cs! Took a first pass on it.

Besides moving the logging code to its own PR, I had one question about the imported SVGs: are we using all 4 of them here?

app/src/main/AndroidManifest.xml Outdated Show resolved Hide resolved
app/src/main/AndroidManifest.xml Outdated Show resolved Hide resolved
app/src/main/AndroidManifest.xml Outdated Show resolved Hide resolved
app/src/main/java/org/oppia/app/splash/SplashActivity.kt Outdated Show resolved Hide resolved
app/src/main/java/org/oppia/app/splash/SplashActivity.kt Outdated Show resolved Hide resolved
app/src/main/res/drawable/bg_splash.xml Outdated Show resolved Hide resolved
app/src/main/res/drawable/ic_oppia_icon_mint.xml Outdated Show resolved Hide resolved
app/src/main/res/layout/activity_splash.xml Outdated Show resolved Hide resolved
app/src/main/res/layout/fragment_splash.xml Outdated Show resolved Hide resolved
app/src/main/res/layout/fragment_splash.xml Outdated Show resolved Hide resolved
@BenHenning
Copy link
Member

One other suggestion: can you please add tests for this new splash activity/fragment? They should be AndroidJUnit tests such that they can run on both Robolectric & Espresso (similar to the HomeActivity's test), and should verify that the transition works as expected.

@veena14cs
Copy link
Contributor Author

Thanks @veena14cs! Took a first pass on it.

Besides moving the logging code to its own PR, I had one question about the imported SVGs: are we using all 4 of them here?

  • We are not using all of them. unwanted SVGs are removed.

- Removed unwanted spaces
- Removed wait time during transition
- Added Javadoc comment
- created background image for splashActivity and it is set to theme.
- Added animation to SplashTheme styles.
@veena14cs
Copy link
Contributor Author

@BenHenning PTAL

@droidizer
Copy link

@veena14cs There's a conflict in a file. :)

@droidizer
Copy link

droidizer commented Aug 25, 2019

I happen to think it is better to introduce Dependency Injection already. @BenHenning Thoughts?
Also since the classes are quite simple how about using Kotlin?
Update: My bad!

@BenHenning
Copy link
Member

Agreed @droidizer. I'm working on introducing Dagger 2 as part of #4. There will be a PR for that soon. Regarding Kotlin--which files in this PR aren't using Kotlin? They all seem to be.

@veena14cs can you please resolve the conflict and update your branch?

@veena14cs
Copy link
Contributor Author

veena14cs commented Aug 26, 2019 via email

Copy link
Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @veena14cs! Generally, the PR looks good to me. I had a few substance comments, but most were nits on style since we're in the process of establishing style guidelines.

.idea/misc.xml Outdated Show resolved Hide resolved
app/src/main/AndroidManifest.xml Outdated Show resolved Hide resolved
app/src/main/java/org/oppia/app/HomeActivity.kt Outdated Show resolved Hide resolved
app/build.gradle Outdated Show resolved Hide resolved
app/src/main/java/org/oppia/app/splash/SplashActivity.kt Outdated Show resolved Hide resolved
app/src/main/java/org/oppia/app/splash/SplashFragment.kt Outdated Show resolved Hide resolved
app/src/main/java/org/oppia/app/splash/SplashFragment.kt Outdated Show resolved Hide resolved
app/src/main/res/layout/activity_splash.xml Outdated Show resolved Hide resolved
app/src/main/res/values/dimens.xml Outdated Show resolved Hide resolved
app/src/main/res/values/styles.xml Outdated Show resolved Hide resolved
@veena14cs
Copy link
Contributor Author

veena14cs commented Aug 26, 2019 via email

@veena14cs veena14cs removed their assignment Sep 25, 2019
Copy link
Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @veena14cs. Everything looks fine here, but I'd like you to resolve the open comment thread before merging. Please follow the format I suggested where you use an inline comment like /* paramName= */ next to literal values, and document why we chose those values in single line, line-wrapped, comments above the field.

@BenHenning BenHenning assigned veena14cs and unassigned BenHenning Sep 29, 2019
@veena14cs veena14cs assigned BenHenning and unassigned veena14cs Sep 30, 2019
Copy link
Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @veena14cs. Please apply the two code snippets and resolve the conflict, and then this is good to submit.

In the future, I suggest copying suggested code snippets from comments directly into your code, and if they seem like they might not work or don't make sense follow up with a question to help narrow down a solution between you and the reviewer.

@BenHenning BenHenning assigned rt4914 and veena14cs and unassigned BenHenning and rt4914 Oct 1, 2019
@veena14cs
Copy link
Contributor Author

Thanks @veena14cs. Please apply the two code snippets and resolve the conflict, and then this is good to submit.

In the future, I suggest copying suggested code snippets from comments directly into your code, and if they seem like they might not work or don't make sense follow up with a question to help narrow down a solution between you and the reviewer.

Thanks @BenHenning will keep this in mind. I have copied these 2 comments and I have I updated code. Its ready to merge.

@veena14cs veena14cs merged commit e92f2c7 into develop Oct 1, 2019
@veena14cs veena14cs deleted the splash-screen branch October 1, 2019 05:05
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.

5 participants