Warning, /graphics/krita/3rdparty/ext_qt/0019-Android-allow-file-dialog-to-use-remote-locations.patch is written in an unsupported language. File is not indexed.

0001 From 694ce1a4bd52018b36a7c95d426e0ef4e09e861a Mon Sep 17 00:00:00 2001
0002 From: Assam Boudjelthia <assam.boudjelthia@qt.io>
0003 Date: Mon, 27 Apr 2020 11:51:09 +0300
0004 Subject: [PATCH 19/46] Android: allow file dialog to use remote locations
0005 
0006 Allow the native file dialog to use remote locations like OneDrive,
0007 Google Drive, etc.
0008 
0009 Pick-to: 5.15
0010 Change-Id: I67027f0da8e6bd759a4936e03b6c9e95f3f90e1a
0011 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
0012 ---
0013  .../android/qandroidplatformfiledialoghelper.cpp         | 9 ---------
0014  .../platforms/android/qandroidplatformfiledialoghelper.h | 1 -
0015  2 files changed, 10 deletions(-)
0016 
0017 diff --git a/src/plugins/platforms/android/qandroidplatformfiledialoghelper.cpp b/src/plugins/platforms/android/qandroidplatformfiledialoghelper.cpp
0018 index 2e29a22cf7..689997f1eb 100644
0019 --- a/src/plugins/platforms/android/qandroidplatformfiledialoghelper.cpp
0020 +++ b/src/plugins/platforms/android/qandroidplatformfiledialoghelper.cpp
0021 @@ -118,14 +118,6 @@ void QAndroidPlatformFileDialogHelper::takePersistableUriPermission(const QJNIOb
0022                                       uri.object(), modeFlags);
0023  }
0024  
0025 -void QAndroidPlatformFileDialogHelper::setLocalFilesOnly(bool localOnly)
0026 -{
0027 -    const QJNIObjectPrivate extraLocalOnly = QJNIObjectPrivate::getStaticObjectField(
0028 -            JniIntentClass, "EXTRA_LOCAL_ONLY", "Ljava/lang/String;");
0029 -    m_intent.callObjectMethod("putExtra", "(Ljava/lang/String;Z)Landroid/content/Intent;",
0030 -                              extraLocalOnly.object(), localOnly);
0031 -}
0032 -
0033  void QAndroidPlatformFileDialogHelper::setIntentTitle(const QString &title)
0034  {
0035      const QJNIObjectPrivate extraTitle = QJNIObjectPrivate::getStaticObjectField(
0036 @@ -237,7 +229,6 @@ bool QAndroidPlatformFileDialogHelper::show(Qt::WindowFlags windowFlags, Qt::Win
0037      }
0038  
0039      setIntentTitle(options()->windowTitle());
0040 -    setLocalFilesOnly(true);
0041  
0042      QtAndroidPrivate::registerActivityResultListener(this);
0043      m_activity.callMethod<void>("startActivityForResult", "(Landroid/content/Intent;I)V",
0044 diff --git a/src/plugins/platforms/android/qandroidplatformfiledialoghelper.h b/src/plugins/platforms/android/qandroidplatformfiledialoghelper.h
0045 index fa9c3f47b3..5a7a28a8a0 100644
0046 --- a/src/plugins/platforms/android/qandroidplatformfiledialoghelper.h
0047 +++ b/src/plugins/platforms/android/qandroidplatformfiledialoghelper.h
0048 @@ -75,7 +75,6 @@ public:
0049  private:
0050      QJNIObjectPrivate getFileDialogIntent(const QString &intentType);
0051      void takePersistableUriPermission(const QJNIObjectPrivate &uri);
0052 -    void setLocalFilesOnly(bool localOnly);
0053      void setIntentTitle(const QString &title);
0054      void setOpenableCategory();
0055      void setAllowMultipleSelections(bool allowMultiple);
0056 -- 
0057 2.33.0
0058