Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

svendvd
Copy link
Contributor

@svendvd svendvd commented Dec 17, 2021

No description provided.

}
}

}
Copy link
Member

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>
Copy link
Member

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" />
Copy link
Member

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) {
Copy link
Member

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..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants