diff options
author | TacoTheDank <SkytkRSfan3895@gmail.com> | 2022-03-22 20:51:17 -0400 |
---|---|---|
committer | TacoTheDank <SkytkRSfan3895@gmail.com> | 2022-03-22 20:51:17 -0400 |
commit | 8e905e99d2b9a13352f6f0057b7fab955d340264 (patch) | |
tree | fab8335b32ec2ec614a9ae1a28761b4ede872c63 /app/src/main/java/de/danoeh/antennapod/activity | |
parent | f6a79859015d4db8b77c95c7b98967fadd96f0cc (diff) | |
download | AntennaPod-8e905e99d2b9a13352f6f0057b7fab955d340264.zip |
Use more FragmentContainerView
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/activity')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java index 3e4782f1f..3f7a5db68 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java @@ -18,7 +18,6 @@ import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.EditText; -import android.widget.FrameLayout; import android.widget.Toast; import androidx.annotation.NonNull; @@ -29,6 +28,7 @@ import androidx.appcompat.widget.Toolbar; import androidx.core.content.ContextCompat; import androidx.drawerlayout.widget.DrawerLayout; import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentContainerView; import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentTransaction; import androidx.recyclerview.widget.RecyclerView; @@ -248,7 +248,7 @@ public class MainActivity extends CastEnabledActivity { public void setPlayerVisible(boolean visible) { getBottomSheet().setLocked(!visible); - FrameLayout mainView = findViewById(R.id.main_view); + FragmentContainerView mainView = findViewById(R.id.main_view); ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) mainView.getLayoutParams(); params.setMargins(0, 0, 0, visible ? (int) getResources().getDimension(R.dimen.external_player_height) : 0); mainView.setLayoutParams(params); |