Search in sources :

Example 1 with CardItemData

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);
}
Also used : CardItemData(com.secupwn.aimsicd.adapters.CardItemData) Cell(com.secupwn.aimsicd.utils.Cell)

Aggregations

CardItemData (com.secupwn.aimsicd.adapters.CardItemData)1 Cell (com.secupwn.aimsicd.utils.Cell)1