use of com.android.systemui.navigation.smartbar.SmartBarView in project android_packages_apps_DUI by DirtyUnicorns.
the class NavigationController method recreateNavigationBar.
public void recreateNavigationBar(Context context) {
int navMode = Settings.Secure.getIntForUser(context.getContentResolver(), Settings.Secure.NAVIGATION_BAR_MODE, NAVIGATION_MODE_SMARTBAR, UserHandle.USER_CURRENT);
final boolean screenPinningEnabled = mScreenPinningEnabled;
if (mNavigationBarView != null) {
mNavigationBarView.dispose();
mNavigationBarView = null;
}
if (navMode == NAVIGATION_MODE_SMARTBAR || screenPinningEnabled) {
mNavigationBarView = new SmartBarView(context, screenPinningEnabled);
} else {
mNavigationBarView = (BaseNavigationBar) View.inflate(context, R.layout.fling_bar, null);
}
mNavigationBarView.setStatusBar(mBar);
mNavigationBarView.setResourceMap(mResourceMap);
mNavigationBarView.setControllers(mPulseController);
}
Aggregations