Tweak PIP restore. Fix Library wunderbar value.
This commit is contained in:
parent
6840997793
commit
a051a73c2b
2 changed files with 10 additions and 2 deletions
|
@ -821,9 +821,16 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||||
}
|
}
|
||||||
|
|
||||||
findViewById(R.id.content_main).setVisibility(View.VISIBLE);
|
findViewById(R.id.content_main).setVisibility(View.VISIBLE);
|
||||||
findViewById(R.id.floating_balance_main_container).setVisibility(inFullscreenMode ? View.INVISIBLE : View.VISIBLE);
|
|
||||||
|
|
||||||
Fragment fragment = getCurrentFragment();
|
Fragment fragment = getCurrentFragment();
|
||||||
|
boolean canShowFloatingBalance = fragment == null ||
|
||||||
|
fragment instanceof FollowingFragment ||
|
||||||
|
fragment instanceof FileViewFragment ||
|
||||||
|
fragment instanceof ChannelFragment ||
|
||||||
|
fragment instanceof EditorsChoiceFragment ||
|
||||||
|
fragment instanceof AllContentFragment ||
|
||||||
|
fragment instanceof LibraryFragment ||
|
||||||
|
fragment instanceof SearchFragment;
|
||||||
|
findViewById(R.id.floating_balance_main_container).setVisibility(!canShowFloatingBalance || inFullscreenMode ? View.INVISIBLE : View.VISIBLE);
|
||||||
if (!(fragment instanceof FileViewFragment) && !inFullscreenMode) {
|
if (!(fragment instanceof FileViewFragment) && !inFullscreenMode) {
|
||||||
findViewById(R.id.global_now_playing_card).setVisibility(View.VISIBLE);
|
findViewById(R.id.global_now_playing_card).setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
|
|
@ -213,6 +213,7 @@ public class LibraryFragment extends BaseFragment implements
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
|
||||||
Context context = getContext();
|
Context context = getContext();
|
||||||
|
Helper.setWunderbarValue(null, context);
|
||||||
if (context instanceof MainActivity) {
|
if (context instanceof MainActivity) {
|
||||||
MainActivity activity = (MainActivity) context;
|
MainActivity activity = (MainActivity) context;
|
||||||
LbryAnalytics.setCurrentScreen(activity, "Library", "Library");
|
LbryAnalytics.setCurrentScreen(activity, "Library", "Library");
|
||||||
|
|
Loading…
Reference in a new issue