Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c36c7531 authored by Flavio Lerda's avatar Flavio Lerda
Browse files

Only call onVisibilityChanged on creation for the current tab.

When the fragment is initially attached, there is a call to
onVisibilityChanged, so that the fragment knows whether it is shown or
not.

Currently, we are calling this with true or false for all tabs (actually
only the DialpadFragment and CallLogFragment, as they implement the
listener interface). However, we do not need to be notified that we are
not visible if we are just being created.

This is needed because otherwise we will assume we were being dismissed
while in reality we were never shown.

Bug: 5157085
Change-Id: I37be7799b0e473cc2eabefef75a56335420979a3
parent fcd462b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment