Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
Fix details fragment "flickering"
Browse files Browse the repository at this point in the history
Check if we're in phone layout and details fragment and if so don't set the visibility of the headerInfo layout
  • Loading branch information
daveeeh committed Nov 29, 2020
1 parent c0ceea6 commit e0cab07
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4210,7 +4210,9 @@ public void onSuccess(TransferInfo transferInfo) {

headerInfo = (LinearLayout) findViewById(R.id.header);

if (header) {
boolean detailsFragment = findViewById(R.id.details_refresh_layout)!=null && findViewById(R.id.activity_main_swipe_refresh_layout)==null;

if (header&!detailsFragment) {
headerInfo.setVisibility(View.VISIBLE);
} else {
headerInfo.setVisibility(View.GONE);
Expand Down

0 comments on commit e0cab07

Please sign in to comment.