mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 09:17:44 +00:00
c11f2eddf5
Allow for editing // FREEBIE
27 lines
722 B
Java
27 lines
722 B
Java
package org.thoughtcrime.securesms;
|
|
|
|
|
|
import android.app.Activity;
|
|
import android.content.Intent;
|
|
import android.support.v7.app.AlertDialog;
|
|
|
|
public class ClearProfileAvatarActivity extends Activity {
|
|
|
|
@Override
|
|
public void onResume() {
|
|
super.onResume();
|
|
|
|
new AlertDialog.Builder(this)
|
|
.setTitle(R.string.ClearProfileActivity_remove_profile_photo)
|
|
.setNegativeButton(android.R.string.cancel, (dialog, which) -> finish())
|
|
.setPositiveButton(R.string.ClearProfileActivity_remove, (dialog, which) -> {
|
|
Intent result = new Intent();
|
|
result.putExtra("delete", true);
|
|
setResult(Activity.RESULT_OK, result);
|
|
finish();
|
|
})
|
|
.show();
|
|
}
|
|
|
|
}
|