|
@@ -40,12 +40,13 @@ public class ConnectionsActivity extends BaseActivity {
|
|
|
|
|
|
private void initData() {
|
|
|
String[] stringList = ResUtils.getStringArray("connections_title_array_", 4);
|
|
|
- //by lzx, 根据需求,去掉votle
|
|
|
- int count = Macros.FUNCTION_VOLTE ? stringList.length : stringList.length -1;
|
|
|
- for (int i = 0; i < count; i++) {
|
|
|
+ for (int i = 0; i < stringList.length; i++) {
|
|
|
BaseModel model = new BaseModel();
|
|
|
model.title = stringList[i].trim();
|
|
|
- model.cellType = (i == 1 && DataManager.getIsDisableWifi()) ? Constant.CellType.GONE : Constant.CellType.XPSTYLE;
|
|
|
+
|
|
|
+ //by lzx, 根据需求,去掉votle
|
|
|
+ boolean isDisable = (i == 1 && DataManager.getIsDisableWifi()) || (i == 2 && DataManager.getIsDisableRoming()) || (i == 3);
|
|
|
+ model.cellType = isDisable ? Constant.CellType.GONE : Constant.CellType.XPSTYLE;
|
|
|
mDataList.add(model);
|
|
|
}
|
|
|
}
|