Created
June 12, 2012 08:27
-
-
Save Eugeny/2916155 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EditChatActivity extends Activity { | |
... | |
private BaseAdapter adapter = new BaseAdapter() { | |
... | |
@Override | |
public View getView(int arg0, View reuse, ViewGroup arg2) { | |
... | |
vh.delete.setOnClickListener(new OnClickListener() { | |
@Override | |
public void onClick(View arg0) { | |
AlertHelper.yesNo(EditChatActivity.this, R.string.remove_this_user_from_chat_, | |
new DialogInterface.OnClickListener() { | |
@Override | |
public void onClick(DialogInterface arg0, int arg1) { | |
new APITask(EditChatActivity.this) { | |
@Override | |
public void process() throws APIProblem { | |
API.removeUserFromChat(EditChatActivity.this, chatId, u.UID); | |
} | |
@Override | |
public void onSuccess() { | |
update(); | |
} | |
}.useLoader(findViewById(R.id.relative)).execute(); | |
} | |
}, null); | |
} | |
}); | |
... | |
} | |
... | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment