Skip to content

Commit f924c45

Browse files
Minor changes and fixes
1 parent 543f61a commit f924c45

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/com/nikola/despotoski/drawerlayoutedgetoggle/DrawerLayoutEdgeToggle.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public void onDrawerClosed(View arg0) {
170170
updateActionBar();
171171
mCurrentDrawable = mCloseDrawable;
172172
if(Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB){
173-
ViewHelper.setX(mHandle, 0);
173+
ViewHelper.setX(mHandle, mGravity == GravityCompat.END || mGravity == Gravity.RIGHT? getScreenWidth() : 0);
174174
ViewHelper.setY(mHandle, mY);
175175
}
176176

@@ -361,7 +361,10 @@ public void setVerticalTopOffset(int topInPercentage){
361361
mTopPercentage = topInPercentage;
362362
}
363363
public void onConfigurationChanged(Configuration newConfig) {
364-
364+
if(mDrawerLayout!=null){
365+
mDrawerLayout.measure(MeasureSpec.EXACTLY, MeasureSpec.EXACTLY);
366+
syncState();
367+
}
365368
}
366369

367370
@SuppressLint("NewApi")

0 commit comments

Comments
 (0)