use of com.secupwn.aimsicd.adapters.CardItemData in project Android-IMSI-Catcher-Detector by CellularPrivacy.
the class CellInfoFragment method updateStockNeighboringCells.
void updateStockNeighboringCells() {
CellInfoOverviewData overviewData = new CellInfoOverviewData();
overviewData.mNeighboringTotal = neighboringCells.size();
mBaseInflaterAdapter.clear(false);
if (neighboringCells.size() != 0) {
int i = 1;
int total = neighboringCells.size();
for (Cell cell : neighboringCells) {
CardItemData data = new CardItemData(cell, i++ + " / " + total);
mBaseInflaterAdapter.addItem(data, false);
}
overviewData.mNeighboringCellsVisibility = View.GONE;
overviewData.mNeighboringTotalViewVisibility = View.VISIBLE;
}
mCellInfoAdapter.updateCellInfoOverview(overviewData);
}
Aggregations