Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Share
diff options
context:
space:
mode:
authormarinofaggiana <marino@marinofaggiana.com>2020-05-15 12:20:38 +0300
committermarinofaggiana <marino@marinofaggiana.com>2020-05-15 12:20:38 +0300
commitd033ce3ba959abd7439539ee5d1fe74b2f042c2e (patch)
tree27ac1327755ac52e2daa4b5652d0eb63005e0412 /Share
parent8a42387bd7609e5d7d32f933670afe91d3e6f20f (diff)
coding
Diffstat (limited to 'Share')
-rw-r--r--Share/ShareViewController.m10
1 files changed, 5 insertions, 5 deletions
diff --git a/Share/ShareViewController.m b/Share/ShareViewController.m
index 4d9965c11..727289430 100644
--- a/Share/ShareViewController.m
+++ b/Share/ShareViewController.m
@@ -61,8 +61,8 @@
} else {
- NSInteger serverVersionMajor = [[NCManageDatabase sharedInstance] getCapabilitiesServerVersionWithAccount:tableAccount.account element:@"major"];
- NSString *webDavRoot = [[NCManageDatabase sharedInstance] getCapabilitiesWebDavRootWithAccount:tableAccount.account];
+ NSInteger serverVersionMajor = [[NCManageDatabase sharedInstance] getCapabilitiesServerIntWithAccount:tableAccount.account elements:NCElementsJSON.shared.capabilitiesVersionMajor];
+ NSString *webDavRoot = [[NCManageDatabase sharedInstance] getCapabilitiesServerStringWithAccount:tableAccount.account elements:NCElementsJSON.shared.capabilitiesWebDavRoot];
// Networking
[[NCCommunicationCommon sharedInstance] setupWithUser:tableAccount.user userId:tableAccount.userID password:[CCUtility getPassword:tableAccount.account] url:tableAccount.url userAgent:[CCUtility getUserAgent] capabilitiesGroup:[NCBrandOptions sharedInstance].capabilitiesGroups webDavRoot:webDavRoot davRoot:nil nextcloudVersion:serverVersionMajor delegate:[NCNetworking sharedInstance]];
@@ -176,9 +176,9 @@
{
// Theming
if ([NCBrandOptions sharedInstance].use_themingColor) {
- NSString *themingColor = [[NCManageDatabase sharedInstance] getCapabilitiesServerThemingWithAccount:self.activeAccount element:@"color"];
- NSString *themingColorElement = [[NCManageDatabase sharedInstance] getCapabilitiesServerThemingWithAccount:self.activeAccount element:@"color-element"];
- NSString *themingColorText = [[NCManageDatabase sharedInstance] getCapabilitiesServerThemingWithAccount:self.activeAccount element:@"color-text"];
+ NSString *themingColor = [[NCManageDatabase sharedInstance] getCapabilitiesServerStringWithAccount:self.activeAccount elements:NCElementsJSON.shared.capabilitiesThemingColor];
+ NSString *themingColorElement = [[NCManageDatabase sharedInstance] getCapabilitiesServerStringWithAccount:self.activeAccount elements:NCElementsJSON.shared.capabilitiesThemingColorElement];
+ NSString *themingColorText = [[NCManageDatabase sharedInstance] getCapabilitiesServerStringWithAccount:self.activeAccount elements:NCElementsJSON.shared.capabilitiesThemingColorText];
[CCGraphics settingThemingColor:themingColor themingColorElement:themingColorElement themingColorText:themingColorText];
}
self.navigationController.navigationBar.barTintColor = NCBrandColor.sharedInstance.brand;