Changed the code accordingly
+ Removed some unused code
This commit is contained in:
parent
25a43b57b2
commit
8b209df253
35 changed files with 153 additions and 413 deletions
|
|
@ -57,8 +57,8 @@ public final class FocusAwareDrawerLayout extends DrawerLayout {
|
|||
for (int i = 0; i < getChildCount(); ++i) {
|
||||
final View child = getChildAt(i);
|
||||
|
||||
final DrawerLayout.LayoutParams lp
|
||||
= (DrawerLayout.LayoutParams) child.getLayoutParams();
|
||||
final DrawerLayout.LayoutParams lp =
|
||||
(DrawerLayout.LayoutParams) child.getLayoutParams();
|
||||
|
||||
if (lp.gravity != 0 && isDrawerVisible(child)) {
|
||||
hasOpenPanels = true;
|
||||
|
|
@ -85,8 +85,8 @@ public final class FocusAwareDrawerLayout extends DrawerLayout {
|
|||
for (int i = 0; i < getChildCount(); ++i) {
|
||||
final View child = getChildAt(i);
|
||||
|
||||
final DrawerLayout.LayoutParams lp
|
||||
= (DrawerLayout.LayoutParams) child.getLayoutParams();
|
||||
final DrawerLayout.LayoutParams lp =
|
||||
(DrawerLayout.LayoutParams) child.getLayoutParams();
|
||||
|
||||
if (lp.gravity == 0) {
|
||||
content = child;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue