Merge branch 'master' of https://github.com/lbryio/lbry-android
This commit is contained in:
commit
76036acfc7
1 changed files with 11 additions and 0 deletions
|
@ -92,6 +92,7 @@ import androidx.core.view.GravityCompat;
|
||||||
import androidx.core.view.OnApplyWindowInsetsListener;
|
import androidx.core.view.OnApplyWindowInsetsListener;
|
||||||
import androidx.core.view.ViewCompat;
|
import androidx.core.view.ViewCompat;
|
||||||
import androidx.core.view.WindowInsetsCompat;
|
import androidx.core.view.WindowInsetsCompat;
|
||||||
|
import androidx.fragment.app.DialogFragment;
|
||||||
import androidx.fragment.app.Fragment;
|
import androidx.fragment.app.Fragment;
|
||||||
import androidx.fragment.app.FragmentManager;
|
import androidx.fragment.app.FragmentManager;
|
||||||
import androidx.fragment.app.FragmentTransaction;
|
import androidx.fragment.app.FragmentTransaction;
|
||||||
|
@ -1032,6 +1033,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||||
//findViewById(R.id.global_sdk_initializing_status).setVisibility(View.GONE);
|
//findViewById(R.id.global_sdk_initializing_status).setVisibility(View.GONE);
|
||||||
findViewById(R.id.app_bar_main_container).setFitsSystemWindows(true);
|
findViewById(R.id.app_bar_main_container).setFitsSystemWindows(true);
|
||||||
hideActionBar();
|
hideActionBar();
|
||||||
|
dismissActiveDialogs();
|
||||||
|
|
||||||
for (PIPModeListener listener : pipModeListeners) {
|
for (PIPModeListener listener : pipModeListeners) {
|
||||||
listener.onEnterPIPMode();
|
listener.onEnterPIPMode();
|
||||||
|
@ -1044,6 +1046,15 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||||
pipPlayerContainer.setVisibility(View.VISIBLE);
|
pipPlayerContainer.setVisibility(View.VISIBLE);
|
||||||
playerReassigned = true;
|
playerReassigned = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void dismissActiveDialogs() {
|
||||||
|
for( Fragment fragment: getSupportFragmentManager().getFragments() ){
|
||||||
|
if (fragment instanceof DialogFragment){
|
||||||
|
((DialogFragment) fragment).dismiss();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void renderFullMode() {
|
private void renderFullMode() {
|
||||||
if (!inFullscreenMode) {
|
if (!inFullscreenMode) {
|
||||||
showActionBar();
|
showActionBar();
|
||||||
|
|
Loading…
Reference in a new issue