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 | |
parent | f6a79859015d4db8b77c95c7b98967fadd96f0cc (diff) | |
download | AntennaPod-8e905e99d2b9a13352f6f0057b7fab955d340264.zip |
Use more FragmentContainerView
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java | 4 | ||||
-rw-r--r-- | app/src/main/res/layout-sw720dp/main.xml | 6 | ||||
-rw-r--r-- | app/src/main/res/layout/audioplayer_fragment.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/layout/main.xml | 6 |
4 files changed, 9 insertions, 9 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); diff --git a/app/src/main/res/layout-sw720dp/main.xml b/app/src/main/res/layout-sw720dp/main.xml index fe5a86d24..e00406464 100644 --- a/app/src/main/res/layout-sw720dp/main.xml +++ b/app/src/main/res/layout-sw720dp/main.xml @@ -8,7 +8,7 @@ android:orientation="horizontal" tools:viewBindingIgnore="true"> - <FrameLayout + <androidx.fragment.app.FragmentContainerView android:id="@+id/navDrawerFragment" android:layout_width="300dp" android:layout_height="match_parent" @@ -25,7 +25,7 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - <FrameLayout + <androidx.fragment.app.FragmentContainerView android:id="@+id/main_view" android:layout_width="match_parent" android:layout_height="match_parent" @@ -33,7 +33,7 @@ android:foreground="?android:windowContentOverlay" tools:background="@android:color/holo_red_dark" /> - <FrameLayout + <androidx.fragment.app.FragmentContainerView android:id="@+id/audioplayerFragment" android:layout_width="match_parent" android:layout_height="match_parent" diff --git a/app/src/main/res/layout/audioplayer_fragment.xml b/app/src/main/res/layout/audioplayer_fragment.xml index 7efbd23c8..5a329cd12 100644 --- a/app/src/main/res/layout/audioplayer_fragment.xml +++ b/app/src/main/res/layout/audioplayer_fragment.xml @@ -16,7 +16,7 @@ app:navigationIcon="?homeAsUpIndicator" android:id="@+id/toolbar"/> - <FrameLayout + <androidx.fragment.app.FragmentContainerView android:id="@+id/playerFragment" android:layout_width="match_parent" android:layout_height="wrap_content" diff --git a/app/src/main/res/layout/main.xml b/app/src/main/res/layout/main.xml index 10b560faf..c5cfb494e 100644 --- a/app/src/main/res/layout/main.xml +++ b/app/src/main/res/layout/main.xml @@ -17,7 +17,7 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - <FrameLayout + <androidx.fragment.app.FragmentContainerView android:id="@+id/main_view" android:layout_width="match_parent" android:layout_height="match_parent" @@ -25,7 +25,7 @@ android:foreground="?android:windowContentOverlay" tools:background="@android:color/holo_red_dark" /> - <FrameLayout + <androidx.fragment.app.FragmentContainerView android:id="@+id/audioplayerFragment" android:layout_width="match_parent" android:layout_height="match_parent" @@ -36,7 +36,7 @@ </androidx.coordinatorlayout.widget.CoordinatorLayout> - <FrameLayout + <androidx.fragment.app.FragmentContainerView android:id="@+id/navDrawerFragment" android:layout_width="match_parent" android:layout_height="match_parent" |