Browse Source

Fix multiple file choosing, Fix options lost on orientation change

pull/63/head
Apostolos Fanakis 6 years ago
parent
commit
1fb91b17d6
  1. 1
      app/src/main/AndroidManifest.xml
  2. 4
      app/src/main/java/gr/thmmy/mthmmy/activities/upload/UploadActivity.java

1
app/src/main/AndroidManifest.xml

@ -110,6 +110,7 @@
</activity> </activity>
<activity <activity
android:name=".activities.upload.UploadActivity" android:name=".activities.upload.UploadActivity"
android:configChanges="orientation|screenSize"
android:parentActivityName=".activities.main.MainActivity" android:parentActivityName=".activities.main.MainActivity"
android:theme="@style/AppTheme.NoActionBar"> android:theme="@style/AppTheme.NoActionBar">
<meta-data <meta-data

4
app/src/main/java/gr/thmmy/mthmmy/activities/upload/UploadActivity.java

@ -270,8 +270,8 @@ public class UploadActivity extends BaseActivity {
"application/msword", "image/vnd.djvu", "application/gz", "application/tar.gz"}; "application/msword", "image/vnd.djvu", "application/gz", "application/tar.gz"};
Intent intent = new Intent(Intent.ACTION_GET_CONTENT) Intent intent = new Intent(Intent.ACTION_GET_CONTENT)
//.setType("*/*") .setType("*/*")
.setType("image/jpeg") //.setType("image/jpeg")
.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes) .putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes)
.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); .putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);

Loading…
Cancel
Save