fixup filebrowser

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

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

@ -105,7 +105,9 @@ NS_ASSUME_NONNULL_BEGIN
OWSTableItem *documentsFileBrowserItem = [OWSTableItem
disclosureItemWithText:@"📁 App Container"
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];
[viewController.navigationController pushViewController:fileBrowser animated:YES];
}];

Loading…
Cancel
Save