freezy / android-xbmcremote-sandbox

Playing with new features. See README.
57 stars 20 forks source link

Fix dashboard reload button after orientation change #13

Closed jstemmer closed 12 years ago

jstemmer commented 12 years ago

The reload button on the dashboard didn't work after a screen orientation change. The syncbridge couldn't get its activity: getActivity was null in AbstractSyncBridge line 103.

I suspect this is because it was detached from its original activity since an orientation change destroys the activity. I've fixed this by removing the existing syncbridge in the ReloadableActionBarActivitiy#onCreate if it existed before and adding it again.