Open forlayo opened 9 years ago
I've had the same problem. The reason is in using Toolbar. For using toolbar as action bar NoActionBar theme should be used. And this library uses support action bar in PhotoSelectionActivity. There is a detour for this collision.
In your manifest insert this lines of code (you can use other AppCompat theme with action bar)
<activity android:name="com.laevatein.internal.ui.PhotoSelectionActivity" android:theme="@style/Theme.AppCompat.Light"/>
<activity android:name="com.laevatein.internal.ui.ImagePreviewActivity" android:theme="@style/Theme.AppCompat.Light"/>
Yes, as @Nobodyhave says, using toolbar instead of action bar is the cause of this problem. We need some compatibility layer to deal with toolbar...
Hello Nobodyhave,
I have tried your solution but it's not working for me please give me another suggestion for this example.
Thanks,
Good news guys, we've introduced toolbar into this library. You can get the update very soon.
I'm trying to use this library but I got a NPE when I execute the first try. I've used to try the next code snippet:
And I got the following NPE:
P.S.:
I'm using latest toolbar and actionbar from Google support library ( because maybe it's related as I see on the NPE traces )