news-android icon indicating copy to clipboard operation
news-android copied to clipboard

Titles and previews occasionally not showing until a restart of the app

Open hansdez opened this issue 2 years ago • 8 comments

Sometimes the title and preview text of some articles aren't showing. A restart of the app seems to fix the issue. It seems to be able to happen to any feed and any article. Sometimes none of the titles of a feed show, and sometimes some do and some don't. It has also happened that the titles of the feeds don't show in the sidebar (only seen this once).

See the attached images:

Screenshot_20230928-164332

Screenshot_20230928-164055


App Version: 0.9.9.81 App Version Code: 185


SSO enabled: true


OS Version: 5.10.157-android13-4-00003-g776d0a76f6aa-ab10208116(10750268) OS API Level: 33 Device: bluejay Model (and Product): Pixel 6a (bluejay)


sp_max_cache_size=250 sp_swipe_left_action=0 sw_use_single_sign_on=true cb_ShowOnlyUnread=true cb_openInBrowserDirectly=false lv_cacheImagesOffline=2 cb_ShowFastActions=true pref_sync_settings=30 cb_AutoSyncOnStart=true sp_news_detail_actionbar_icons=[share] sp_swipe_right_action=2 cb_NavigateWithVolumeButtons=false sp_font_size=1.0 NewsWebVersionNumber=23.0.0 sp_search_in=1 cb_external_player=false sp_sort_order=0 cb_MarkAsReadWhileScrolling=false sp_feed_list_layout=1 cb_oled_mode=false sp_display_browser=1 sp_app_theme=1

hansdez avatar Sep 28 '23 22:09 hansdez

@hansdez Thank you for the report. It looks like an an issue where the wrong color is applied (when switching between light and dark theme). But from your configuration I can see from the configuration that you are using "Light" (sp_app_theme=1) as your theme and the app shouldn't switch between the light and dark theme. I will release a new version soon which possibly fixes this issue as we've done quite some work around the area of switching themes.

David-Development avatar Sep 30 '23 10:09 David-Development

@David-Development Thank you for the quick acknowlegdement!

I can confirm that my phone's theme is on dark mode (and never switches), whereas I prefer the Nextcloud app in light mode (which I also don't change). I haven't tried what happens when I make sure that the app and the phone have the same theme.

Very happy to test a new version, and to update this issue with the results.

hansdez avatar Oct 02 '23 20:10 hansdez

I sometimes saw this phenomenon in item lists titles, text and feed menus that the text color seems to be chosen from the opposite theme. I think even in the latest version. This isn't reproducible always - but is annoying when present. My experience was that only some news items were colored different. Due to the different dark background and dark text tone the text wasn't hidden at all, so it seems to be like described - a somehow switching of theme colors!? Is that possible while rendering the lists? I'll try to catch a screenshot. My OS theme is light (not auto) while my app theme is dark. Android 9, Galaxy S8

mMuck avatar Jan 22 '24 09:01 mMuck

I now have version 0.9.9.85 of the app.

It seems like some changes were done as it failed a bit differently, but I still had similar problems as before when running the light version of the app running on a phone with a dark theme. Switching to the dark version of the app fixed the problem for me (but is not my preference).

Do let me know if I can be of any help in debugging.

hansdez avatar Jan 22 '24 14:01 hansdez

I can confirm that, Hans! Saw it in the feed sidebar menu too. Happens in both dark and light theme. Restarting the app fixes this but after a time this comes up again.

Here some screenshots (latest version):

Title "missing", but when opening the entry, it is there. Seems to be only hidden due to this wrong theme color bug 1080-863-max

1024-1735

And when I tap and hold I can see there is text 1024-1718

@David-Development How can we help investigating this?

mMuck avatar Jan 26 '24 08:01 mMuck

I'm not sure if you guys have dev experience - but the corresponding sections in the code are here:

  • Choose whether Light/Dark/Auto Theme should be active: link
  • Colors for:

Maybe you try to tweak them and see if it works at all? I've never experiences this on my current Pixel 7 (Android 14).

So I guess so far the affected phones are:

  • Pixel 6a (Android 14)
  • Samsung S8 (Android 9)

David-Development avatar Jan 31 '24 09:01 David-Development

Thank you for doing this write-up. Unfortunately, I don't have enough dev experience to try this out.

Only thing I can confirm is that I have this problem on my Pixel 6a, running Android 14.

hansdez avatar Jan 31 '24 09:01 hansdez

I'm using the app version 0.9.9.85 on a Samsung Galaxy S20 and can confirm the reported behavior.

Just for the records, it seems that https://github.com/nextcloud/news-android/pull/1405 has been closed in favor of https://github.com/nextcloud/news-android/pull/1410 .

j-ed avatar Apr 15 '24 15:04 j-ed