2017-08-16 19:01:26 +00:00
|
|
|
package org.thoughtcrime.securesms;
|
|
|
|
|
|
|
|
|
|
|
|
import android.app.Activity;
|
|
|
|
import android.content.Intent;
|
2020-08-19 00:06:26 +00:00
|
|
|
import androidx.appcompat.app.AlertDialog;
|
2017-08-16 19:01:26 +00:00
|
|
|
|
2019-07-24 02:30:23 +00:00
|
|
|
import network.loki.messenger.R;
|
|
|
|
|
2017-08-16 19:01:26 +00:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|