use of com.secupwn.aimsicd.adapters.CellCardInflater in project Android-IMSI-Catcher-Detector by CellularPrivacy.
the class CellInfoFragment method updateStockNeighboringCells.
void updateStockNeighboringCells() {
mNeighboringTotal.setText(String.valueOf(neighboringCells.size()));
if (neighboringCells.size() != 0) {
BaseInflaterAdapter<CardItemData> adapter = new BaseInflaterAdapter<>(new CellCardInflater());
int i = 1;
int total = neighboringCells.size();
for (Cell cell : neighboringCells) {
CardItemData data = new CardItemData(cell, i++ + " / " + total);
adapter.addItem(data, false);
}
lv.setAdapter(adapter);
mNeighboringCells.setVisibility(View.GONE);
mNeighboringTotalView.setVisibility(View.VISIBLE);
}
}
Aggregations