Only show announcements on subscriptions if home is not enabled. Add margin top to subscriptions.

This commit is contained in:
Koen J 2024-12-05 16:51:56 +01:00
parent 92715b5642
commit 53443a6cf2
2 changed files with 5 additions and 2 deletions

View file

@ -124,7 +124,9 @@ class SubscriptionsFeedFragment : MainFragment() {
initializeToolbarContent();
setPreviewsEnabled(Settings.instance.subscriptions.previewFeedItems);
showAnnouncementView()
if (Settings.instance.tabs.find { it.id == 0 }?.enabled != true) {
showAnnouncementView()
}
}
fun onShown() {

View file

@ -116,7 +116,8 @@
android:visibility="gone"
android:id="@+id/empty_pager_container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="wrap_content"
android:layout_marginTop="30dp" />
</FrameLayout>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>