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

When "skip detail view" is active, articles are not opened on tap #1289

Closed
codeling opened this issue Oct 11, 2023 · 8 comments
Closed

When "skip detail view" is active, articles are not opened on tap #1289

codeling opened this issue Oct 11, 2023 · 8 comments

Comments

@codeling
Copy link

codeling commented Oct 11, 2023

Since very recently - probably since updating to 0.9.9.82:

In the settings, I have "skip detail view and open articles in browser" (self-translated - my app in german shows "Detailansicht überspringen und Artikel in Browser öffnen") activated.

Before the problem started, when I tapped on an article, it would open immediately in a browser.

Now, when I tap an article, no browser comes to the foreground and shows the article; only the tapped item gets marked as read, but nothing else happens. When I deactivate abovementioned setting, on first tap, a detail view opens, and on tapping the item title in that detail view, the associated article opens in the browser (as it happened before, immediately on tapping the item in the list, as I would like it to be).

Android Version: 13 (on a Fairphone 4)

Edit: Just cleared all App data and tried again; the issue still appears as described above.

@codeling codeling changed the title When "skip detail view" is active, items are only marked unread when tapping them When "skip detail view" is active, articles are not opened at all Oct 11, 2023
@codeling codeling changed the title When "skip detail view" is active, articles are not opened at all When "skip detail view" is active, articles are not opened on tap Oct 11, 2023
@SHA-NDY
Copy link

SHA-NDY commented Oct 12, 2023

I have the same issue, app version 0.9.9.82, Android 14. No problems before that version.

@yennor
Copy link

yennor commented Nov 10, 2023

The same here, before 0.9.9.82 that worked. In 0.9.9.83 it still doesn't work :-(

thebaztet added a commit to thebaztet/news-android that referenced this issue Nov 10, 2023
The values used for selected browser aren't the ones set in strings.xml.

Fixes issue nextcloud#1289
@thebaztet
Copy link
Contributor

thebaztet commented Nov 10, 2023

Hello !

This error was caused by a typo on NewsReaderListActivity.java.

switch(selectedBrowser) {
	case 0:
		openRssItemInCustomTab(currentUrl);
		break;
	case 1:
		//openRssItemInInternalBrowser(currentUrl);
		break;
	case 2:
		openRssItemInExternalBrowser(currentUrl);
		break;
}

The values used there aren't the ones set in string.xml:

<string-array name="pref_display_browser" translatable="false">
    <item>@string/pref_display_browser_cct</item>
    <item>@string/pref_display_browser_built_in</item>
    <item>@string/pref_display_browser_external</item>
</string-array>
<string-array name="pref_display_browser_values" translatable="false">
    <item>0</item>
    <item>2</item>
    <item>1</item>
</string-array>

If you select "built-in browser" instead, the external browser should open.

@mkanilsson I think you may be interested, since you are working on per-feed open-in settings.

@mkanilsson
Copy link
Contributor

mkanilsson commented Nov 10, 2023

@thebaztet Your solution looks good but I think we should open "Built-In browser" in "Chrome-Custom-Tabs" as discussed here, if not, other users would have the same problem if their option is set to "Built-in Browser".

Something like

switch(selectedBrowser) {
    case 0:
    case 2:
        openRssItemInCustomTab(currentUrl);
        break;
    case 1:
        openRssItemInExternalBrowser(currentUrl);
        break;
}

Thank you!

thebaztet added a commit to thebaztet/news-android that referenced this issue Nov 11, 2023
The values used for selected browser aren't the ones set in strings.xml.

Fixes issue nextcloud#1289
@thebaztet
Copy link
Contributor

You're right ! I just amended my commit accordingly.

By the way, is it a problem if I use an anonymous account ? I checked the guidelines and understood it may be unsafe.
If yes, feel free to take over the commit.

Thanks !

@mkanilsson
Copy link
Contributor

I'm unsure, I know some people use anonymous accounts but I'm just a contributor so I can't answer it (pinging @David-Development because he can answer it).

If you're done with the fix, I recommend opening a PR. It should be your name on it, not mine :)

@David-Development
Copy link
Member

Sorry for the delay! All merge requests will be reviewed before merging anyways. Since you already said that you will create a MR I'm okay with an anonymous account. (not 100% sure what an anonymous account is on GitHub anyways - this here? 😅)

thebaztet added a commit to thebaztet/news-android that referenced this issue Nov 26, 2023
The values used for selected browser aren't the ones set in strings.xml.

Fixes issue nextcloud#1289

Signed-off-by: thebaztet <150456327+thebaztet@users.noreply.github.com>
@thebaztet
Copy link
Contributor

Sorry too for the delay, I wasn't at home. Please find the merge request above. :)

By anonymous, I meant an account with not personal informations in it. But it's just a matter of time and confidence before I begin to use my identity anyway.

Thanks !

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

No branches or pull requests

6 participants