px-amaac/KZFR

Failing Program View

Closed this issue · 2 comments

Use Case: clicking on any program will display that program in the program activity. After clicking on another program it will show up as well. Upon doing this three times the data does not get through. Need to debug this problem.

trvbr commented

This also occurs on my Nexus 4, Android 5.1.1.

I found the reason behind this bug. The activity is being destroyed and onNewIntent is only launched when the activity was not destroyed and got a new intent. It is not called if the activity is destroyed and a new activity is created. The fix will be to put the updating of the view code into onResume and in onNewIntent() call setIntent(intent);