mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 13:15:35 +03:00
Merge pull request #7339 from nextcloud/mediaOverlaps
Fix overlapping seek bar and softkeys
This commit is contained in:
commit
f87bd9b03b
1 changed files with 7 additions and 0 deletions
|
@ -133,6 +133,7 @@ import javax.inject.Inject;
|
|||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
import androidx.appcompat.widget.SearchView;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import androidx.core.view.MenuItemCompat;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
|
@ -646,6 +647,9 @@ public class FileDisplayActivity extends FileActivity
|
|||
}
|
||||
updateFragmentsVisibility(false);
|
||||
updateActionBarTitleAndHomeButton(null);
|
||||
|
||||
CoordinatorLayout.LayoutParams params = (CoordinatorLayout.LayoutParams) findViewById(R.id.root_layout).getLayoutParams();
|
||||
params.setBehavior(new AppBarLayout.ScrollingViewBehavior());
|
||||
}
|
||||
|
||||
public void updateListOfFilesFragment(boolean fromSearch) {
|
||||
|
@ -2174,6 +2178,9 @@ public class FileDisplayActivity extends FileActivity
|
|||
}
|
||||
if (showPreview && file.isDown() && !file.isDownloading() || streamMedia) {
|
||||
showSortListGroup(false);
|
||||
CoordinatorLayout.LayoutParams params = (CoordinatorLayout.LayoutParams) findViewById(R.id.root_layout).getLayoutParams();
|
||||
params.setBehavior(null);
|
||||
|
||||
Fragment mediaFragment = PreviewMediaFragment.newInstance(file, user.get(), startPlaybackPosition, autoplay);
|
||||
setSecondFragment(mediaFragment);
|
||||
updateFragmentsVisibility(true);
|
||||
|
|
Loading…
Reference in a new issue