[Modify]修复首页底部文案显示问题
This commit is contained in:
@@ -78,4 +78,5 @@ public interface IInitialModel extends IModel {
|
||||
@Nullable
|
||||
FairyOpenInfo getFairyOpenInfo();
|
||||
|
||||
List<MainTabInfo> getDefaultMainTab();
|
||||
}
|
||||
|
@@ -133,12 +133,13 @@ public class InitialModel extends BaseModel implements IInitialModel {
|
||||
|
||||
private InitialModel() {
|
||||
api = RxNet.create(Api.class);
|
||||
loadMainTabInfoList();
|
||||
List<MainTabInfo> tabInfoList = DemoCache.readMainTabInfoList();
|
||||
if (ListUtils.isListEmpty(tabInfoList)) {
|
||||
tabInfoList = getDefaultMainTab();
|
||||
DemoCache.saveMainTabInfoList(tabInfoList);
|
||||
}
|
||||
// loadMainTabInfoList();
|
||||
// List<MainTabInfo> tabInfoList = DemoCache.readMainTabInfoList();
|
||||
// if (ListUtils.isListEmpty(tabInfoList)) {
|
||||
// tabInfoList = getDefaultMainTab();
|
||||
// DemoCache.saveMainTabInfoList(tabInfoList);
|
||||
// }
|
||||
List<MainTabInfo> tabInfoList = getDefaultMainTab();
|
||||
mainTabInfosLiveData.setValue(tabInfoList);
|
||||
IntentFilter filter = new IntentFilter("android.net.conn.CONNECTIVITY_CHANGE");
|
||||
receiver = new BroadcastReceiver() {
|
||||
@@ -430,7 +431,8 @@ public class InitialModel extends BaseModel implements IInitialModel {
|
||||
}
|
||||
|
||||
|
||||
private List<MainTabInfo> getDefaultMainTab() {
|
||||
@Override
|
||||
public List<MainTabInfo> getDefaultMainTab() {
|
||||
return new ArrayList<>(Arrays.asList(
|
||||
new MainTabInfo(
|
||||
"",
|
||||
|
Reference in New Issue
Block a user