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
diff options
context:
space:
mode:
authormarinofaggiana <ios@nextcloud.com>2022-08-02 18:36:39 +0300
committermarinofaggiana <ios@nextcloud.com>2022-08-02 18:36:39 +0300
commit1951f444f44faceebe197bb85e3a70a56e4fbad6 (patch)
treebf8986cd374ced439ec04c32d8d0b6596b0d460a /iOSClient
parent5a5db058a4611f55fc1ddc550dc1dae6df75da21 (diff)
clear code
Signed-off-by: marinofaggiana <ios@nextcloud.com>
Diffstat (limited to 'iOSClient')
-rw-r--r--iOSClient/AppDelegate.swift1
-rw-r--r--iOSClient/Media/NCMedia.swift2
-rwxr-xr-xiOSClient/Settings/CCAdvanced.m3
3 files changed, 0 insertions, 6 deletions
diff --git a/iOSClient/AppDelegate.swift b/iOSClient/AppDelegate.swift
index 09de6068a..bfd8c6587 100644
--- a/iOSClient/AppDelegate.swift
+++ b/iOSClient/AppDelegate.swift
@@ -44,7 +44,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
var activeAppConfigView: NCAppConfigView?
var activeLogin: NCLogin?
var activeLoginWeb: NCLoginWeb?
- @objc var activeMedia: NCMedia?
var activeServerUrl: String = ""
@objc var activeViewController: UIViewController?
var mainTabBar: NCMainTabBar?
diff --git a/iOSClient/Media/NCMedia.swift b/iOSClient/Media/NCMedia.swift
index 92fd31896..d486e32df 100644
--- a/iOSClient/Media/NCMedia.swift
+++ b/iOSClient/Media/NCMedia.swift
@@ -71,8 +71,6 @@ class NCMedia: UIViewController, NCEmptyDataSetDelegate, NCSelectDelegate {
override func viewDidLoad() {
super.viewDidLoad()
- appDelegate.activeMedia = self
-
view.backgroundColor = NCBrandColor.shared.systemBackground
collectionView.register(UINib(nibName: "NCGridMediaCell", bundle: nil), forCellWithReuseIdentifier: "gridCell")
diff --git a/iOSClient/Settings/CCAdvanced.m b/iOSClient/Settings/CCAdvanced.m
index b0bfc5352..a32c5f827 100755
--- a/iOSClient/Settings/CCAdvanced.m
+++ b/iOSClient/Settings/CCAdvanced.m
@@ -403,9 +403,6 @@
// Inizialized home
[[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:NCGlobal.shared.notificationCenterInitialize object:nil userInfo:nil];
- // Clear Media
- [appDelegate.activeMedia reloadDataSourceWithCompletion:^(NSArray *metadatas) { }];
-
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC), dispatch_get_main_queue(), ^(void) {
[[NCUtility shared] stopActivityIndicator];
[self calculateSize];