|
|
@@ -163,7 +163,13 @@ struct NewIndex {
|
|
|
this.mType = 0
|
|
|
} else if(this.tabSelectedIndexes[0]==2){
|
|
|
// 网盘选项卡
|
|
|
- this.mType = 6
|
|
|
+ if(this.webDavAccounts.length>0&&(this.webDavAccounts[0].webType===RemoteDriveType.Navidrome||
|
|
|
+ this.webDavAccounts[0].webType===RemoteDriveType.Jellyfin||
|
|
|
+ this.webDavAccounts[0].webType===RemoteDriveType.Emby)){
|
|
|
+ this.mType = 7
|
|
|
+ }else{
|
|
|
+ this.mType = 6
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
// 歌单相关状态变量
|
|
|
@@ -256,31 +262,7 @@ struct NewIndex {
|
|
|
this.isShowPrecious = PreferencesUtil.getBooleanSync('isShowPrecious', false)
|
|
|
ReqPermissionUtil.reqPermissionsFromUser(ReqPermissionUtil.permissions, this.context);
|
|
|
this.isShowTitleBar = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_TITLTBAR, false)
|
|
|
- if(this.defalut_home_type==0){
|
|
|
- this.mType = 0
|
|
|
- }else if(this.defalut_home_type==1){
|
|
|
- this.mType = 0
|
|
|
- this.modeType = 1
|
|
|
- }else if(this.defalut_home_type==2){
|
|
|
- if(this.webDavAccounts.length>0){
|
|
|
- if(this.webDavAccounts[0].webType===RemoteDriveType.Navidrome||
|
|
|
- this.webDavAccounts[0].webType===RemoteDriveType.Jellyfin||
|
|
|
- this.webDavAccounts[0].webType===RemoteDriveType.Emby){
|
|
|
- this.mType = 7
|
|
|
- }else{
|
|
|
- this.mType = 6
|
|
|
- }
|
|
|
- }else{
|
|
|
- this.mType = 6
|
|
|
- }
|
|
|
- this.tabSelectedIndexes[0]=2
|
|
|
- }else if(this.defalut_home_type==3){
|
|
|
- this.mType = 0
|
|
|
- this.modeType = 2
|
|
|
- }else if(this.defalut_home_type==4){
|
|
|
- this.mType = 0
|
|
|
- this.modeType = 3
|
|
|
- }
|
|
|
+
|
|
|
Utility.enableFullScreen()
|
|
|
this.topRectHeight = px2vp(AppUtil.getStatusBarHeight());
|
|
|
Utility.getAppName(getContext(this)).then((appName: string) => {
|
|
|
@@ -364,6 +346,34 @@ struct NewIndex {
|
|
|
PreferencesUtil.putSync('isShowHaoPingDialog179', true)
|
|
|
},25000)
|
|
|
}
|
|
|
+ if(this.defalut_home_type==0){
|
|
|
+ this.mType = 0
|
|
|
+ }else if(this.defalut_home_type==1){
|
|
|
+ this.mType = 0
|
|
|
+ this.modeType = 1
|
|
|
+ }else if(this.defalut_home_type==2){//如果是网盘的话
|
|
|
+ if(this.webDavAccounts.length>0){
|
|
|
+ console.info('onecold 网盘 默认首页2 this.webDavAccounts[0].webType='+this.webDavAccounts[0].webType )
|
|
|
+ if(this.webDavAccounts[0].webType===RemoteDriveType.Navidrome||
|
|
|
+ this.webDavAccounts[0].webType===RemoteDriveType.Jellyfin||
|
|
|
+ this.webDavAccounts[0].webType===RemoteDriveType.Emby){
|
|
|
+ this.mType = 7
|
|
|
+ this.selectWebDavAccount(this.webDavAccounts[0])
|
|
|
+ }else{
|
|
|
+ this.mType = 6
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.mType = 6
|
|
|
+ }
|
|
|
+ this.tabSelectedIndexes[0]=2
|
|
|
+ }else if(this.defalut_home_type==3){
|
|
|
+ this.mType = 0
|
|
|
+ this.modeType = 2
|
|
|
+ }else if(this.defalut_home_type==4){
|
|
|
+ this.mType = 0
|
|
|
+ this.modeType = 3
|
|
|
+ }
|
|
|
+ console.info('onecold 网盘 默认首页2 this.mType='+this.mType )
|
|
|
}
|
|
|
|
|
|
/**
|