public void setDrawerIndicatorEnabled(boolean flag) { if (flag != mDrawerIndicatorEnabled) { if (flag) { SlideDrawable slidedrawable = mSlider; int i; if (mDrawerLayout.isDrawerOpen(0x800003)) { i = mCloseDrawerContentDescRes; } else { i = mOpenDrawerContentDescRes; } setActionBarUpIndicator(slidedrawable, i); } else { setActionBarUpIndicator(mThemeImage, 0); } mDrawerIndicatorEnabled = flag; } }
public void syncState() { if (mDrawerLayout.isDrawerOpen(0x800003)) { mSlider.setPosition(1.0F); } else { mSlider.setPosition(0.0F); } if (mDrawerIndicatorEnabled) { SlideDrawable slidedrawable = mSlider; int i; if (mDrawerLayout.isDrawerOpen(0x800003)) { i = mCloseDrawerContentDescRes; } else { i = mOpenDrawerContentDescRes; } setActionBarUpIndicator(slidedrawable, i); } }