public void refreshViews() { if (DEBUG) Log.d(TAG, "refreshViews count =" + mListAdapter.getCount()); mListAdapter.notifyDataSetInvalidated(); updateUiElements(); /* YUNOS BEGIN */ // ##modules(systemui recents) // ##date:2013-11-19 ##author:[email protected] updateRecentTaskCount(); // updateMemInfo(); /* YUNOS END */ showIfReady(); }
public void updateRecentTaskCount() { TextView view = (TextView) findViewById(R.id.recent_task_num); if (view != null) { view.setText(String.valueOf(mListAdapter.getCount())); } }