@Override public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); updateMapLocationButtons(mAppPrefs.getAutoPanMode()); final View telemetryView = telemetryFragment.getView(); if (telemetryView != null) { final int slidingDrawerWidth = telemetryView.getWidth(); updateLocationButtonsMargin(isActionDrawerOpened(), slidingDrawerWidth); } }
@Override public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); updateMapLocationButtons(mAppPrefs.getAutoPanMode()); }