Search in sources :

Example 1 with TickerView

use of com.android.systemui.statusbar.phone.TickerView in project android_frameworks_base by DirtyUnicorns.

the class PhoneStatusBar method initTickerView.

private void initTickerView() {
    if (mTickerEnabled != 0 && (mTicker == null || mTickerView == null)) {
        final ViewStub tickerStub = (ViewStub) mStatusBarView.findViewById(R.id.ticker_stub);
        if (tickerStub != null) {
            mTickerView = tickerStub.inflate();
            mTicker = new MyTicker(mContext, mStatusBarView);
            TickerView tickerView = (TickerView) mStatusBarView.findViewById(R.id.tickerText);
            tickerView.mTicker = mTicker;
        } else {
            mTickerEnabled = 0;
        }
    }
}
Also used : ViewStub(android.view.ViewStub) TickerView(com.android.systemui.statusbar.phone.TickerView)

Aggregations

ViewStub (android.view.ViewStub)1 TickerView (com.android.systemui.statusbar.phone.TickerView)1