Skip to content

Commit

Permalink
Fix position of schedule hint
Browse files Browse the repository at this point in the history
  • Loading branch information
astarivi committed Jul 26, 2023
1 parent bc0b971 commit a0eb52d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ android {

beta {
applicationIdSuffix '.beta'
versionNameSuffix '02-BETA'
versionNameSuffix '03-BETA'
resValue "string", "app_k_name", "Kaizoyu! Beta"
resValue "string", "provider_authority", "com.astarivi.kaizoyu.beta.fileprovider"
}
Expand Down Expand Up @@ -118,8 +118,12 @@ dependencies {

// Jackson
// Don't update to 2.14 as Android minSdk support changes.

//noinspection GradleDependency
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.5'
//noinspection GradleDependency
implementation 'com.fasterxml.jackson.core:jackson-core:2.13.5'
//noinspection GradleDependency
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.13.5'

// HTTP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,28 @@ public void onViewCreated(@NonNull View root, Bundle savedState) {
binding.getRoot().getLayoutTransition().setAnimateParentHierarchy(false);
binding.dowTabs.getLayoutTransition().setAnimateParentHierarchy(false);

WindowCompatUtils.setOnApplyWindowInsetsListener(
binding.episodeCardButton,
(v, windowInsets) -> {
Insets insets = windowInsets.getInsets(WindowInsetsCompat.Type.navigationBars());

if (getContext() == null) return windowInsets;

if (v.getLayoutParams() instanceof ViewGroup.MarginLayoutParams) {
ViewGroup.MarginLayoutParams p = (ViewGroup.MarginLayoutParams) v.getLayoutParams();
p.setMargins(
0,
0,
0,
insets.bottom + (int) Utils.convertDpToPixel(78, requireContext())
);
v.requestLayout();
}

return windowInsets;
}
);

WindowCompatUtils.setOnApplyWindowInsetsListener(
binding.scheduleAnimeRecycler,
(v, windowInsets) -> {
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
app:tabTextColor="@color/main_tab_layout_selector"
app:layout_behavior="@string/hide_bottom_view_on_scroll_behavior"
>

<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down

0 comments on commit a0eb52d

Please sign in to comment.