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: Declare NewsBrainzActivity in androidManifest #160
Fix: Declare NewsBrainzActivity in androidManifest #160
Conversation
Clicking the News button in the main screen does not open the News activity as it's not defined in the AndroidManifest
@akshaaatt idk why but I can't seem to add you a reviewer. Tagging you :) |
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 a lot for bringing this up! 💯
I removed it by mistake in my previous commits while removing the Settings activity.
app/src/main/AndroidManifest.xml
Outdated
android:exported="false" | ||
android:label="@string/title_activity_news_brainz" | ||
android:theme="@style/AppTheme"> | ||
<meta-data |
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.
This is not a shared library or anything so we don't need this tag here. Please remove it.
app/src/main/AndroidManifest.xml
Outdated
@@ -38,6 +38,16 @@ | |||
android:value="" /> | |||
</activity> | |||
|
|||
<activity | |||
android:name=".ui.screens.newsbrainz.NewsBrainzActivity" | |||
android:exported="false" |
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.
We don't actually need to specify this until and unless an intent filter is added to the activity.
app/src/main/AndroidManifest.xml
Outdated
android:name=".ui.screens.newsbrainz.NewsBrainzActivity" | ||
android:exported="false" | ||
android:label="@string/title_activity_news_brainz" | ||
android:theme="@style/AppTheme"> |
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.
The default theme for the app is this, hence even if we don't duplicate it here, it will pick the same theme.
@prabalsingh24 I was in a hurry to make a beta release of the app, hence pushed the fix for it. Thanks a lot for bringing this up though! 💯 |
Clicking the News button in the main screen does not open the News activity as it's not defined in the AndroidManifest