Commit ebd37a92 authored by armin's avatar armin
Browse files

s

parent dceda5bc
Subproject commit 9e87ce6e41a9ec6dc24f8f48885cd4fd82bf583c
Subproject commit 554ce8d7e5ce645b14b6857e201906e4ff71272c
......@@ -13,7 +13,7 @@
#include <QtGui/qpa/qplatformnativeinterface.h>
#include <QString>
#include <string>
#include "ios/IosGalleryPicker.h"
#include "ios/src/IosGalleryPicker.h"
......@@ -33,13 +33,17 @@
return self;
}
- (void) imagePickerControllerDidCancel:(UIImagePickerController *)picker{
[picker dismissViewControllerAnimated:YES completion:NULL];
[picker release];
}
- (void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<NSString *,id> *)info
{
UIImage *orig = [info valueForKey:UIImagePickerControllerOriginalImage];
NSURL *refURL = [info valueForKey:UIImagePickerControllerReferenceURL];
PHFetchResult *result = [PHAsset fetchAssetsWithALAssetURLs:@[refURL] options:nil];
NSString *filename = [[result firstObject] filename];
PHAsset *asset = [info valueForKey:UIImagePickerControllerPHAsset];
NSString *filename = [asset valueForKey:@"filename"];
QString qFilename = QString::fromNSString(filename);
......@@ -61,12 +65,9 @@
destFile.open(QFile::WriteOnly);
if(destFile.write(qImgData)>0){
mIosPicker->receiveFile(path);
[picker dismissViewControllerAnimated:YES completion:NULL];
[picker release];
}else{
[picker dismissViewControllerAnimated:YES completion:NULL];
[picker release];
}
[picker dismissViewControllerAnimated:YES completion:NULL];
[picker release];
}
@end
......
......@@ -24,11 +24,11 @@
#include <QObject>
#include "ios/fileopener.h"
#include "ios/urlhandler.h"
#include "ios/IosGalleryPicker.h"
#include "ios/shareheplersingelton.h"
#include "ios/IosBadges.h"
#include "ios/src/fileopener.h"
#include "ios/src/urlhandler.h"
#include "ios/src/IosGalleryPicker.h"
#include "ios/src/shareheplersingelton.h"
#include "ios/src/IosBadges.h"
#include "ios/src/CookieHelper.h"
#include "notifications/notifications.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment