Skip to content

Commit

Permalink
bugfix: Compilation fails because of merge
Browse files Browse the repository at this point in the history
  • Loading branch information
cgspine committed Aug 2, 2018
1 parent 9f977ec commit f579f52
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,4 @@ public int getSystemWindowInsetTop() {
public boolean applySystemWindowInsets21(Object insets) {
return true;
}

@Override
public boolean applySystemWindowInsets(WindowInsets insets) {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1068,11 +1068,6 @@ public boolean applySystemWindowInsets21(Object insets) {
return true;
}

@Override
public boolean applySystemWindowInsets(WindowInsets insets) {
return true;
}

public static class LayoutParams extends FrameLayout.LayoutParams {

private static final float DEFAULT_PARALLAX_MULTIPLIER = 0.5f;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ protected void onConfigurationChanged(Configuration newConfig) {
}

@Override
public void notifyInsetMaybeChanged() {
public boolean notifyInsetMaybeChanged() {
setPadding(
QMUINotchHelper.getSafeInsetLeft(this),
QMUINotchHelper.getSafeInsetTop(this),
QMUINotchHelper.getSafeInsetRight(this),
QMUINotchHelper.getSafeInsetBottom(this)
);
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,6 @@ public boolean applySystemWindowInsets21(Object insets) {
return mQMUIWindowInsetHelper.defaultApplySystemWindowInsets21(this, insets);
}

@Override
public boolean applySystemWindowInsets(WindowInsets insets) {
return mQMUIWindowInsetHelper.defaultApplySystemWindowInsets(this, insets);
}

@Override
public void setAdapter(PagerAdapter adapter) {
if (adapter instanceof QMUIPagerAdapter) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package com.qmuiteam.qmui.widget;

import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Rect;
import android.os.Build;
import android.support.v4.view.ViewCompat;
import android.support.v4.view.WindowInsetsCompat;
import android.util.AttributeSet;
import android.view.WindowInsets;
import android.widget.FrameLayout;

import com.qmuiteam.qmui.util.QMUIWindowInsetHelper;
Expand Down Expand Up @@ -59,11 +56,6 @@ public boolean applySystemWindowInsets21(Object insets) {
return mQMUIWindowInsetHelper.defaultApplySystemWindowInsets21(this, insets);
}

@Override
public boolean applySystemWindowInsets(WindowInsets insets) {
return mQMUIWindowInsetHelper.defaultApplySystemWindowInsets(this, insets);
}

@Override
protected void onAttachedToWindow() {
super.onAttachedToWindow();
Expand Down

0 comments on commit f579f52

Please sign in to comment.