Skip to content

Commit

Permalink
Make the window target the default and set mDecorContent to an initia…
Browse files Browse the repository at this point in the history
…l value

Signed-off-by: Eddie Ringle <eddie@eringle.net>
  • Loading branch information
EddieRingle committed Aug 18, 2012
1 parent 38dc7bb commit f2cba31
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,13 @@ public DrawerGarment(Activity activity, int drawerLayout) {

mScrollerHandler = new Handler();
mScroller = new Scroller(activity, new SmoothInterpolator());
mSlideTarget = 0;
mSlideTarget = SLIDE_TARGET_WINDOW;

mDecorView = (ViewGroup) activity.getWindow().getDecorView();
mWindowTarget = (ViewGroup) mDecorView.getChildAt(0);
mContentTarget = (ViewGroup) mDecorView.findViewById(android.R.id.content);
mDrawerContent = (ViewGroup) LayoutInflater.from(activity).inflate(drawerLayout, null);
mDecorContent = mWindowTarget;

/* TODO: Make this a configurable attribute */
mDecorContent.setBackgroundColor(Color.WHITE);
Expand Down

0 comments on commit f2cba31

Please sign in to comment.