Skip to content

Commit

Permalink
Fix the compiling bug after mergence.
Browse files Browse the repository at this point in the history
  • Loading branch information
Special Leung authored and Special Leung committed Sep 25, 2015
1 parent c2396d5 commit b77c3c4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions ResideMenu/src/com/special/ResideMenu/ResideMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
import android.app.Activity;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Rect;
import android.os.Build;
import android.util.DisplayMetrics;
import android.view.*;
import android.view.animation.AnimationUtils;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.*;

import com.nineoldandroids.animation.Animator;
import com.nineoldandroids.animation.AnimatorSet;
Expand Down Expand Up @@ -146,7 +145,7 @@ protected boolean fitSystemWindows(Rect insets) {

// This is added to fix soft navigationBar's overlapping to content above LOLLIPOP
int bottomPadding = viewActivity.getPaddingBottom() + insets.bottom;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
if (Build.VERSION.SDK_INT >= 21) {
bottomPadding += getNavigationBarHeight();
}

Expand Down Expand Up @@ -686,13 +685,13 @@ public interface OnMenuListener {
public void closeMenu();
}

private void showScrollViewMenu(ScrollView scrollViewMenu) {
private void showScrollViewMenu(View scrollViewMenu) {
if (scrollViewMenu != null && scrollViewMenu.getParent() == null) {
addView(scrollViewMenu);
}
}

private void hideScrollViewMenu(ScrollView scrollViewMenu) {
private void hideScrollViewMenu(View scrollViewMenu) {
if (scrollViewMenu != null && scrollViewMenu.getParent() != null) {
removeView(scrollViewMenu);
}
Expand Down

0 comments on commit b77c3c4

Please sign in to comment.