diff --git a/demo-app/src/main/AndroidManifest.xml b/demo-app/src/main/AndroidManifest.xml index bb1141d01..38d9b6426 100644 --- a/demo-app/src/main/AndroidManifest.xml +++ b/demo-app/src/main/AndroidManifest.xml @@ -56,6 +56,24 @@ + + + + + + + + + + + + + + + + + + + when (quickEditorResult) { + GravatarQuickEditorResult.AVATAR_SELECTED -> { + profileChanges++ + Toast.makeText(this, "Avatar selected", Toast.LENGTH_SHORT).show() + } + + GravatarQuickEditorResult.DISMISSED -> { + Toast.makeText(this, "Dismissed", Toast.LENGTH_SHORT).show() + } + + else -> { + Toast.makeText(this, "Unexpected...", Toast.LENGTH_SHORT).show() + } + } + } + override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_quick_editor_test) @@ -41,9 +66,12 @@ class QuickEditorTestActivity : AppCompatActivity() { private fun setupViews() { val profileCard = findViewById(R.id.profile_card) val btnUpdateAvatar = findViewById