MediaBrowser.subscribe doesn't work after I get back to activity 1 from activity 2 (6.0.1 Android)

后端 未结 3 381
鱼传尺愫
鱼传尺愫 2021-01-19 07:49

When I open activity 1 (Main/Launcher activity of the app), that includes MediaBrowser connection, MediaBrowser.subscribe works ok (onChildrenLoaded

3条回答
  •  没有蜡笔的小新
    2021-01-19 08:30

    Temporary solution:

    move MediaBrowserCompat.connect() from onStart() to onCreate(), and move MediaBrowserCompat.disconnect() from onStop() to onDestroy(). It works now.

    Must be fixed in v25.4.0: https://issuetracker.google.com/issues/37133265#comment3

提交回复
热议问题