File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/main/java/ir/smartdevelopers/smartfilebrowser/acitivties Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ android {
3131 }
3232}
3333group = ' ir.smartdevelopers'
34- version = ' 1.4.3 '
34+ version = ' 1.4.4 '
3535task sourcesJar (type : Jar ) {
3636 archiveClassifier. set(" sources" )
3737 from android. sourceSets. main. java. srcDirs
Original file line number Diff line number Diff line change @@ -679,7 +679,7 @@ private void initViews(Bundle savedInstanceState) {
679679 mBottomNavigationView .setUseElevation (true );
680680 mBottomNavigationView .setTitleState (AHBottomNavigation .TitleState .ALWAYS_SHOW );
681681
682- int [] res = {R .attr .actionBarSize };
682+ int [] res = {android . R .attr .actionBarSize };
683683 TypedArray typedArray = obtainStyledAttributes (res );
684684 mActionBarSize = typedArray .getDimensionPixelSize (0 , 56 ) +
685685 (int ) TypedValue .applyDimension (TypedValue .COMPLEX_UNIT_DIP , 24 , getResources ().getDisplayMetrics ());
@@ -1002,9 +1002,10 @@ private void initGalleryToolbarViews() {
10021002 }
10031003
10041004 private void openSystemGalleryApp () {
1005- Intent galleyIntent = new Intent (Intent .ACTION_PICK );
1005+ Intent galleyIntent = new Intent (Intent .ACTION_OPEN_DOCUMENT );
10061006 galleyIntent .setType ("image/*" );
10071007 galleyIntent .putExtra (Intent .EXTRA_ALLOW_MULTIPLE , mCanSelectMultipleInGallery );
1008+ galleyIntent .addFlags (Intent .FLAG_GRANT_READ_URI_PERMISSION );
10081009 startActivityForResult (galleyIntent , REQ_CODE_PICK_BY_GALLEY );
10091010 }
10101011
You can’t perform that action at this time.
0 commit comments