1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.exoplatform.widget;
20
21 import org.exoplatform.R;
22 import org.exoplatform.ui.social.ComposeMessageActivity;
23
24 import android.app.Dialog;
25 import android.content.Context;
26 import android.view.View;
27 import android.view.Window;
28 import android.widget.Button;
29
30 public class RemoveAttachedPhotoDialog extends Dialog implements android.view.View.OnClickListener {
31 private Button removePhotoButton;
32
33 public RemoveAttachedPhotoDialog(Context context) {
34 super(context);
35 requestWindowFeature(Window.FEATURE_NO_TITLE);
36 setContentView(R.layout.remove_photo_dialog_layout);
37 setCanceledOnTouchOutside(true);
38 removePhotoButton = (Button) findViewById(R.id.remove_photo_remove_button);
39 removePhotoButton.setOnClickListener(this);
40 }
41
42 @Override
43 public void onClick(View view) {
44 if (view.equals(removePhotoButton)) {
45 ComposeMessageActivity.removeImageFromMessage();
46 }
47 dismiss();
48 }
49
50 }