-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CustomStickerLayer example #80
base: master
Are you sure you want to change the base?
Conversation
} | ||
} | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you use the source code from the latest deployed docs? That has better handling for gallery intent, doesn't use the deprecated getExternalStorageDirectory
, and also doesn't have un-needed permission handling.
android:layout_height="match_parent" | ||
android:layout_weight="25"/> | ||
</LinearLayout> | ||
</RelativeLayout> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed in this sample?
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | ||
<uses-permission android:name="android.permission.INTERNET"/> | ||
|
||
<protected-broadcast android:name="android.intent.action.MEDIA_MOUNTED" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this broadcast needed? 😅
|
||
// We hijack internalLoadBitmapCache to know when it's time to load the cache | ||
override fun internalLoadBitmapCache(pixelSize: Long, sync: Boolean): Boolean { | ||
if (!isClickCacheLoading && clickAreaCache == BitmapFactoryUtils.NOTHING_BITMAP) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add a check for !sync
here since this is not needed in the case of exporting..
No description provided.