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

App opens on my default screen each time after switching apps #7107

Open
4 tasks done
keunes opened this issue Apr 16, 2024 · 4 comments
Open
4 tasks done

App opens on my default screen each time after switching apps #7107

keunes opened this issue Apr 16, 2024 · 4 comments
Labels
Type: Possible bug Issues that seem to be a bug, but haven't been confirmed yet

Comments

@keunes
Copy link
Member

keunes commented Apr 16, 2024

Checklist

  • I have used the search function for OPEN issues to see if someone else has already submitted the same bug report.
  • I have also used the search function for CLOSED issues to see if the problem is already solved and just waiting to be released.
  • I will describe the problem with as much detail as possible.
  • If the bug only to occurs with a certain podcast, I will include the URL of that podcast.

App version

3.4.0-beta1 (58db8f1)

Where did you get the app from

Google Play

Android version

13

Device model

Fairphone 5

First occurred

a while ago, I think after the update to 3.4 (at least much more often than before, where it happened occasionally, e.g. when doing something else recource-intensive).

Steps to reproduce

  1. Go to a specific screen in AntennaPod, e.g. the settings of a specific podcast
  2. Switch to other app
  3. Switch back to AntennaPod

Expected behaviour

The previously opened screen is still opened.

Current behaviour

The Home screen (my default screen) is opened & loading.

Logs

No response

@keunes keunes added the Type: Possible bug Issues that seem to be a bug, but haven't been confirmed yet label Apr 16, 2024
@ByteHamster
Copy link
Member

Hmm, this does work for me. Even when setting up Android to not keep background processes, which means that AntennaPod gets recreated and needs to restore its state every time I switch back and forth between apps.

@keunes
Copy link
Member Author

keunes commented Apr 17, 2024

Any ideas for how we could debug this? Via adb? It's a bit annoying.

@ByteHamster
Copy link
Member

Is there anything on the "report bug" page? Maybe AP crashes in the background?

@keunes
Copy link
Member Author

keunes commented Apr 18, 2024

Only something from a couple of days ago, not sure if I've reported that already:

Environment

Android version: 13
OS version: 5.4.219-qgki-g95eb98a8c435
AntennaPod version: 3.4.0-beta1
Model: FP5
Device: FP5
Product: FP5

Crash info

Time: 13-04-2024 09:32:59
AntennaPod version: 3.4.0-beta1

StackTrace

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.media.session.MediaSessionCompat.setQueue(java.util.List)' on a null object reference
	at de.danoeh.antennapod.playback.service.PlaybackService.lambda$loadQueueForMediaSession$1(SourceFile:365)
	at de.danoeh.antennapod.playback.service.PlaybackService.$r8$lambda$3WT6xURXkVDC9YruKSvbc6mTkWk(SourceFile:0)
	at de.danoeh.antennapod.playback.service.PlaybackService$$ExternalSyntheticLambda5.accept(SourceFile:0)
	at io.reactivex.internal.observers.ConsumerSingleObserver.onSuccess(SourceFile:62)
	at io.reactivex.internal.operators.single.SingleObserveOn$ObserveOnSingleObserver.run(SourceFile:81)
	at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run(SourceFile:124)
	at android.os.Handler.handleCallback(Handler.java:942)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7918)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:942)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Possible bug Issues that seem to be a bug, but haven't been confirmed yet
Projects
None yet
Development

No branches or pull requests

2 participants