Skip to content

Fix blank view issues with fragments

Eric Eastwood requested to merge revert-back-to-android-api-26 into master

Fix blank view issues with fragments, https://gitlab.com/gitlab-org/gitter/gitter-android-app/issues/108

We upgraded to Android API 26 in https://gitlab.com/gitlab-org/gitter/gitter-android-app/merge_requests/7

I assume this has to do with the deprecation of fragments in later versions of the API. Seems like it happened in 28 but there may have been other breaking changes in between.

Perhaps this,

In Support Library 26.1.0, Fragment and FragmentActivity has adopted Lifecycle.

This is a special release to integrate the Support Library with Lifecycles from Architecture Components. If you are not using the Lifecycles library, you don’t need to update from 26.0.2. For more information, see the Architecture Components release notes.

Important changes

  • Fragment and FragmentActivity (the base class for AppCompatActivity) now implement the LifecycleOwner interface from Architecture Components.

https://stackoverflow.com/a/50056909/796832

Related issues,

Edited by Eric Eastwood

Merge request reports