Migrate Profile Package to Kotlin #6118 #5928

This commit is contained in:
Sujal-Gupta-SG 2025-01-11 21:12:37 +05:30
parent 3417b7ac3b
commit 77819d73e4

View file

@ -5,6 +5,7 @@ import android.content.Intent
import android.graphics.Bitmap
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.view.*
import android.widget.ImageView
import android.widget.TextView
@ -133,6 +134,10 @@ class ProfileActivity : BaseActivity() {
R.id.share_app_icon -> {
val rootView = window.decorView.findViewById<View>(android.R.id.content)
val screenShot = Utils.getScreenShot(rootView)
if (screenShot == null) {
Log.e("ERROR", "ScreenShot is null")
return false
}
showAlert(screenShot)
true
}