Comments (5)
Sorry I don't get what you mean, the list disappears when you select an image by design; and the library has nothing to do with onActivityResult. What are you trying to achieve?
from bsimagepicker.
Oh sorry, I probably didn't explain correctly. Please check this example:
As you can see, I have a grid with two images and have the following BSImagePicker.OnSingleImageSelectedListener:
override fun onSingleImageSelected(uri: Uri) {
startActivity(Intent(this, ImageActivity::class.java).putExtra("uri", uri))
overridePendingTransition(R.anim.pull_right, R.anim.pull_right_semi)
}
So, when I choose the image I start another activity and pass the uri so I can use the image. The problem is that after this new activity, when I go back to the previous activity (the one with the grid), the grid with the two images doesn't exists anymore.
I am pretty sure that the problem is the "dismiss()" on line 396 of the BSImagePicker.java class:
adapter.setImageTileOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (v.getTag() != null && v.getTag() instanceof Uri && onSingleImageSelectedListener != null) {
onSingleImageSelectedListener.onSingleImageSelected((Uri) v.getTag());
dismiss();
}
}
});
I know this is the normal behaviour of the library, and probably this is not even an issue, but would be nice to not dismiss the picker after an image click. Maybe add another method to the Builder to .dismissAfterClick(false).
I hope that you understand my issue. Anyway, thank you for your hard work and for this library!
from bsimagepicker.
Understood now! That is a valid suggestion, I will add it soon :) Thanks!
from bsimagepicker.
Thanks to @ikakus this will be added to next version.
from bsimagepicker.
Implemented in 1.1.0
from bsimagepicker.
Related Issues (20)
- [Question] Set default front/back camera HOT 4
- Preview not working HOT 14
- How to use in Xamarin.Android? HOT 1
- How to convert Android.Net.Uri to Stream? HOT 1
- Don't have BSImagePicker.ImageLoaderDelegate
- Images Rotates during selection HOT 5
- is it possible to show as it is selected if we reopen image picker? HOT 3
- Convert Selected Images to Base64 strings HOT 1
- ** Not working with Android X ** HOT 1
- Camera icon not showing HOT 2
- Glide does not show images on Android Q HOT 1
- File not Found HOT 1
- Can we change the layout to curved edges and selection tick to different image ? HOT 1
- Pick video? HOT 1
- bug on onRequestPermissionsResult in BSImagePicker HOT 4
- camera in multi image selection HOT 1
- Getting No Such File or Directory HOT 1
- Image Picker dialog does not close automatically after choosing image from gallery HOT 1
- Bottombar Done TextView set enable
- add camera and folder option in multi selection image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bsimagepicker.