mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 20:59:00 +00:00
remove urls from sharing
This commit is contained in:
parent
f18a5005e3
commit
39be40ffd5
2 changed files with 3 additions and 3 deletions
|
|
@ -61,7 +61,7 @@ constructor(private val soundManager: SoundManager, threadExecutor: ThreadExecut
|
|||
}
|
||||
|
||||
val event = ShareEvent()
|
||||
event.sharedMessage = requestValues.activity.getString(R.string.share_levelup, requestValues.newLevel) + " https://habitica.com/social/level-UP"
|
||||
event.sharedMessage = requestValues.activity.getString(R.string.share_levelup, requestValues.newLevel)
|
||||
val avatarView = AvatarView(requestValues.activity, showBackground = true, showMount = true, showPet = true)
|
||||
avatarView.setAvatar(requestValues.user)
|
||||
avatarView.onAvatarImageReady(Consumer { t -> event.shareImage = t })
|
||||
|
|
|
|||
|
|
@ -427,7 +427,7 @@ open class MainActivity : BaseActivity(), TutorialView.OnTutorialReaction {
|
|||
dialog.addButton(R.string.onwards, true)
|
||||
dialog.addButton(R.string.share, false) { hatchingDialog, _ ->
|
||||
val event1 = ShareEvent()
|
||||
event1.sharedMessage = getString(R.string.share_raised, pet.text) + " https://habitica.com/social/raise-pet"
|
||||
event1.sharedMessage = getString(R.string.share_raised, pet.text)
|
||||
val mountImageSideLength = 99
|
||||
val sharedImage = Bitmap.createBitmap(mountImageSideLength, mountImageSideLength, Bitmap.Config.ARGB_8888)
|
||||
val canvas = Canvas(sharedImage)
|
||||
|
|
@ -717,7 +717,7 @@ open class MainActivity : BaseActivity(), TutorialView.OnTutorialReaction {
|
|||
dialog.addButton(R.string.onwards, true) { hatchingDialog, _ -> hatchingDialog.dismiss() }
|
||||
dialog.addButton(R.string.share, false) { hatchingDialog, _ ->
|
||||
val event1 = ShareEvent()
|
||||
event1.sharedMessage = getString(R.string.share_hatched, potionName, eggName) + " https://habitica.com/social/hatch-pet"
|
||||
event1.sharedMessage = getString(R.string.share_hatched, potionName, eggName)
|
||||
val petImageSideLength = 140
|
||||
val sharedImage = Bitmap.createBitmap(petImageSideLength, petImageSideLength, Bitmap.Config.ARGB_8888)
|
||||
val canvas = Canvas(sharedImage)
|
||||
|
|
|
|||
Loading…
Reference in a new issue