fixup filebrowser

pull/1/head
Michael Kirk 7 years ago
parent 2d3bd87de9
commit e1e355bfec

@ -29,7 +29,7 @@
let titleLabel = UILabel() let titleLabel = UILabel()
titleLabel.text = "\(fileURL)" titleLabel.text = "\(fileURL)"
titleLabel.sizeToFit() titleLabel.sizeToFit()
titleLabel.textColor = UIColor.white titleLabel.textColor = Theme.primaryColor
titleLabel.lineBreakMode = .byTruncatingHead titleLabel.lineBreakMode = .byTruncatingHead
self.navigationItem.titleView = titleLabel self.navigationItem.titleView = titleLabel
} }

@ -105,7 +105,9 @@ NS_ASSUME_NONNULL_BEGIN
OWSTableItem *documentsFileBrowserItem = [OWSTableItem OWSTableItem *documentsFileBrowserItem = [OWSTableItem
disclosureItemWithText:@"📁 App Container" disclosureItemWithText:@"📁 App Container"
actionBlock:^{ actionBlock:^{
NSURL *baseURL = [NSURL URLWithString:[OWSFileSystem appLibraryDirectoryPath]]; NSString *libraryPath = [OWSFileSystem appLibraryDirectoryPath];
NSString *containerPath = [libraryPath stringByDeletingLastPathComponent];
NSURL *baseURL = [NSURL fileURLWithPath:containerPath];
DebugUIFileBrowser *fileBrowser = [[DebugUIFileBrowser alloc] initWithFileURL:baseURL]; DebugUIFileBrowser *fileBrowser = [[DebugUIFileBrowser alloc] initWithFileURL:baseURL];
[viewController.navigationController pushViewController:fileBrowser animated:YES]; [viewController.navigationController pushViewController:fileBrowser animated:YES];
}]; }];

Loading…
Cancel
Save