use of com.android.systemui.statusbar.SignalClusterView in project android_frameworks_base by crdroidandroid.
the class PhoneStatusBar method destroy.
@Override
public void destroy() {
super.destroy();
if (mStatusBarWindow != null) {
mWindowManager.removeViewImmediate(mStatusBarWindow);
mStatusBarWindow = null;
}
if (mNavigationController.getBar() != null) {
mWindowManager.removeViewImmediate(mNavigationController.getBar().getBaseView());
mNavigationController.destroy();
}
mPackageMonitor.removeListener(mNavigationController);
mPackageMonitor.removeListener(mMinitBatteryController);
mPackageMonitor.unregister();
if (mHandlerThread != null) {
mHandlerThread.quitSafely();
mHandlerThread = null;
}
mContext.unregisterReceiver(mBroadcastReceiver);
mContext.unregisterReceiver(mDemoReceiver);
mContext.unregisterReceiver(mDUReceiver);
mAssistManager.destroy();
final SignalClusterView signalCluster = (SignalClusterView) mStatusBarView.findViewById(R.id.signal_cluster);
final SignalClusterView signalClusterKeyguard = (SignalClusterView) mKeyguardStatusBar.findViewById(R.id.signal_cluster);
final SignalClusterView signalClusterQs = (SignalClusterView) mHeader.findViewById(R.id.signal_cluster);
mNetworkController.removeSignalCallback(signalCluster);
mNetworkController.removeSignalCallback(signalClusterKeyguard);
mNetworkController.removeSignalCallback(signalClusterQs);
if (mQSPanel != null && mQSPanel.getHost() != null) {
mQSPanel.getHost().destroy();
}
}
use of com.android.systemui.statusbar.SignalClusterView in project android_frameworks_base by crdroidandroid.
the class PhoneStatusBar method inflateSignalClusters.
private void inflateSignalClusters() {
SignalClusterView signalClusterView = reinflateSignalCluster(mStatusBarView);
mIconController.setSignalCluster(signalClusterView);
reinflateSignalCluster(mKeyguardStatusBar);
}
Aggregations