2014-02-28 12:46:01 -05:00
|
|
|
package eu.siacs.conversations.ui;
|
2014-01-23 20:04:05 -05:00
|
|
|
|
2015-10-20 09:27:33 -04:00
|
|
|
import android.app.ActionBar;
|
2014-02-04 15:44:16 -05:00
|
|
|
import android.app.AlertDialog;
|
2015-10-20 09:27:33 -04:00
|
|
|
import android.content.ActivityNotFoundException;
|
2014-02-04 16:26:46 -05:00
|
|
|
import android.content.DialogInterface;
|
|
|
|
import android.content.DialogInterface.OnClickListener;
|
2014-01-28 13:21:54 -05:00
|
|
|
import android.content.Intent;
|
|
|
|
import android.os.Bundle;
|
2015-10-09 07:37:08 -04:00
|
|
|
import android.security.KeyChain;
|
|
|
|
import android.security.KeyChainAliasCallback;
|
2015-12-01 08:18:07 -05:00
|
|
|
import android.util.Pair;
|
2014-08-20 05:32:49 -04:00
|
|
|
import android.view.ContextMenu;
|
2015-07-20 08:26:29 -04:00
|
|
|
import android.view.ContextMenu.ContextMenuInfo;
|
2014-01-28 13:21:54 -05:00
|
|
|
import android.view.Menu;
|
|
|
|
import android.view.MenuItem;
|
|
|
|
import android.view.View;
|
|
|
|
import android.widget.AdapterView;
|
2014-08-20 05:32:49 -04:00
|
|
|
import android.widget.AdapterView.AdapterContextMenuInfo;
|
2014-01-28 13:21:54 -05:00
|
|
|
import android.widget.AdapterView.OnItemClickListener;
|
|
|
|
import android.widget.ListView;
|
2015-10-09 07:37:08 -04:00
|
|
|
import android.widget.Toast;
|
2014-01-23 20:04:05 -05:00
|
|
|
|
2015-07-20 08:26:29 -04:00
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
2015-10-20 09:27:33 -04:00
|
|
|
import java.util.concurrent.atomic.AtomicBoolean;
|
2015-07-20 08:26:29 -04:00
|
|
|
|
2015-08-05 12:52:34 -04:00
|
|
|
import eu.siacs.conversations.Config;
|
2015-07-20 08:26:29 -04:00
|
|
|
import eu.siacs.conversations.R;
|
|
|
|
import eu.siacs.conversations.entities.Account;
|
2015-10-09 07:37:08 -04:00
|
|
|
import eu.siacs.conversations.services.XmppConnectionService;
|
2015-07-20 08:26:29 -04:00
|
|
|
import eu.siacs.conversations.services.XmppConnectionService.OnAccountUpdate;
|
|
|
|
import eu.siacs.conversations.ui.adapter.AccountAdapter;
|
2015-12-01 08:18:07 -05:00
|
|
|
import eu.siacs.conversations.xmpp.jid.InvalidJidException;
|
|
|
|
import eu.siacs.conversations.xmpp.jid.Jid;
|
|
|
|
|
2015-10-29 09:03:41 -04:00
|
|
|
import org.openintents.openpgp.util.OpenPgpApi;
|
2015-07-20 08:26:29 -04:00
|
|
|
|
2015-10-09 07:37:08 -04:00
|
|
|
public class ManageAccountActivity extends XmppActivity implements OnAccountUpdate, KeyChainAliasCallback, XmppConnectionService.OnAccountCreated {
|
2014-07-12 07:42:17 -04:00
|
|
|
|
2015-12-01 08:18:07 -05:00
|
|
|
private final String STATE_SELECTED_ACCOUNT = "selected_account";
|
|
|
|
|
2014-08-20 05:32:49 -04:00
|
|
|
protected Account selectedAccount = null;
|
2015-12-01 08:18:07 -05:00
|
|
|
protected Jid selectedAccountJid = null;
|
2014-07-12 07:42:17 -04:00
|
|
|
|
2015-01-03 07:36:48 -05:00
|
|
|
protected final List<Account> accountList = new ArrayList<>();
|
2014-01-28 13:21:54 -05:00
|
|
|
protected ListView accountListView;
|
2014-07-31 09:09:34 -04:00
|
|
|
protected AccountAdapter mAccountAdapter;
|
2015-10-20 09:27:33 -04:00
|
|
|
protected AtomicBoolean mInvokedAddAccount = new AtomicBoolean(false);
|
2015-01-03 07:36:48 -05:00
|
|
|
|
2015-12-01 08:18:07 -05:00
|
|
|
protected Pair<Integer, Intent> mPostponedActivityResult = null;
|
|
|
|
|
2015-01-03 07:36:48 -05:00
|
|
|
@Override
|
|
|
|
public void onAccountUpdate() {
|
2015-02-17 08:18:35 -05:00
|
|
|
refreshUi();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void refreshUiReal() {
|
2015-01-03 07:36:48 -05:00
|
|
|
synchronized (this.accountList) {
|
2014-02-04 09:09:50 -05:00
|
|
|
accountList.clear();
|
|
|
|
accountList.addAll(xmppConnectionService.getAccounts());
|
|
|
|
}
|
2015-10-20 09:27:33 -04:00
|
|
|
ActionBar actionBar = getActionBar();
|
|
|
|
if (actionBar != null) {
|
|
|
|
actionBar.setHomeButtonEnabled(this.accountList.size() > 0);
|
|
|
|
actionBar.setDisplayHomeAsUpEnabled(this.accountList.size() > 0);
|
|
|
|
}
|
2015-02-17 08:18:35 -05:00
|
|
|
invalidateOptionsMenu();
|
|
|
|
mAccountAdapter.notifyDataSetChanged();
|
2015-01-03 07:36:48 -05:00
|
|
|
}
|
2014-07-12 07:42:17 -04:00
|
|
|
|
2014-01-28 13:21:54 -05:00
|
|
|
@Override
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
|
|
|
|
setContentView(R.layout.manage_accounts);
|
2014-02-04 09:09:50 -05:00
|
|
|
|
2015-12-01 08:18:07 -05:00
|
|
|
if (savedInstanceState != null) {
|
|
|
|
String jid = savedInstanceState.getString(STATE_SELECTED_ACCOUNT);
|
|
|
|
if (jid != null) {
|
|
|
|
try {
|
|
|
|
this.selectedAccountJid = Jid.fromString(jid);
|
|
|
|
} catch (InvalidJidException e) {
|
|
|
|
this.selectedAccountJid = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-01-28 13:21:54 -05:00
|
|
|
accountListView = (ListView) findViewById(R.id.account_list);
|
2014-07-31 09:09:34 -04:00
|
|
|
this.mAccountAdapter = new AccountAdapter(this, accountList);
|
|
|
|
accountListView.setAdapter(this.mAccountAdapter);
|
2014-01-28 13:21:54 -05:00
|
|
|
accountListView.setOnItemClickListener(new OnItemClickListener() {
|
|
|
|
|
|
|
|
@Override
|
2014-02-04 09:09:50 -05:00
|
|
|
public void onItemClick(AdapterView<?> arg0, View view,
|
2015-10-09 07:37:08 -04:00
|
|
|
int position, long arg3) {
|
2014-09-20 10:02:49 -04:00
|
|
|
switchToAccount(accountList.get(position));
|
2014-02-04 15:44:16 -05:00
|
|
|
}
|
|
|
|
});
|
2014-08-20 05:32:49 -04:00
|
|
|
registerForContextMenu(accountListView);
|
|
|
|
}
|
2014-01-28 13:21:54 -05:00
|
|
|
|
2014-08-20 05:32:49 -04:00
|
|
|
@Override
|
2015-12-01 08:18:07 -05:00
|
|
|
public void onSaveInstanceState(final Bundle savedInstanceState) {
|
|
|
|
if (selectedAccount != null) {
|
|
|
|
savedInstanceState.putString(STATE_SELECTED_ACCOUNT, selectedAccount.getJid().toBareJid().toString());
|
|
|
|
}
|
|
|
|
super.onSaveInstanceState(savedInstanceState);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
|
2014-08-20 05:32:49 -04:00
|
|
|
super.onCreateContextMenu(menu, v, menuInfo);
|
2014-10-15 13:32:12 -04:00
|
|
|
ManageAccountActivity.this.getMenuInflater().inflate(
|
|
|
|
R.menu.manageaccounts_context, menu);
|
2015-12-01 08:18:07 -05:00
|
|
|
AdapterContextMenuInfo acmi = (AdapterContextMenuInfo) menuInfo;
|
2014-08-20 05:32:49 -04:00
|
|
|
this.selectedAccount = accountList.get(acmi.position);
|
|
|
|
if (this.selectedAccount.isOptionSet(Account.OPTION_DISABLED)) {
|
|
|
|
menu.findItem(R.id.mgmt_account_disable).setVisible(false);
|
|
|
|
menu.findItem(R.id.mgmt_account_announce_pgp).setVisible(false);
|
|
|
|
menu.findItem(R.id.mgmt_account_publish_avatar).setVisible(false);
|
|
|
|
} else {
|
|
|
|
menu.findItem(R.id.mgmt_account_enable).setVisible(false);
|
2016-02-24 08:47:49 -05:00
|
|
|
menu.findItem(R.id.mgmt_account_announce_pgp).setVisible(Config.supportOpenPgp());
|
2014-08-20 05:32:49 -04:00
|
|
|
}
|
2014-11-09 10:57:22 -05:00
|
|
|
menu.setHeaderTitle(this.selectedAccount.getJid().toBareJid().toString());
|
2014-01-28 13:21:54 -05:00
|
|
|
}
|
2014-07-12 07:42:17 -04:00
|
|
|
|
2014-01-28 13:21:54 -05:00
|
|
|
@Override
|
|
|
|
void onBackendConnected() {
|
2015-12-01 08:18:07 -05:00
|
|
|
if (selectedAccountJid != null) {
|
|
|
|
this.selectedAccount = xmppConnectionService.findAccountByJid(selectedAccountJid);
|
|
|
|
}
|
2015-10-20 09:27:33 -04:00
|
|
|
refreshUiReal();
|
2015-12-01 08:18:07 -05:00
|
|
|
if (this.mPostponedActivityResult != null) {
|
|
|
|
this.onActivityResult(mPostponedActivityResult.first, RESULT_OK, mPostponedActivityResult.second);
|
|
|
|
}
|
2015-10-20 09:27:33 -04:00
|
|
|
if (Config.X509_VERIFICATION && this.accountList.size() == 0) {
|
2015-12-01 08:18:07 -05:00
|
|
|
if (mInvokedAddAccount.compareAndSet(false, true)) {
|
2015-10-20 09:27:33 -04:00
|
|
|
addAccountFromKey();
|
|
|
|
}
|
|
|
|
}
|
2014-01-28 13:21:54 -05:00
|
|
|
}
|
2014-02-04 09:09:50 -05:00
|
|
|
|
2014-01-28 13:21:54 -05:00
|
|
|
@Override
|
|
|
|
public boolean onCreateOptionsMenu(Menu menu) {
|
|
|
|
getMenuInflater().inflate(R.menu.manageaccounts, menu);
|
2015-01-03 07:36:48 -05:00
|
|
|
MenuItem enableAll = menu.findItem(R.id.action_enable_all);
|
2015-10-12 07:18:20 -04:00
|
|
|
MenuItem addAccount = menu.findItem(R.id.action_add_account);
|
|
|
|
MenuItem addAccountWithCertificate = menu.findItem(R.id.action_add_account_with_cert);
|
|
|
|
|
|
|
|
if (Config.X509_VERIFICATION) {
|
|
|
|
addAccount.setVisible(false);
|
|
|
|
addAccountWithCertificate.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
|
|
|
|
}
|
|
|
|
|
2015-01-03 07:36:48 -05:00
|
|
|
if (!accountsLeftToEnable()) {
|
|
|
|
enableAll.setVisible(false);
|
|
|
|
}
|
|
|
|
MenuItem disableAll = menu.findItem(R.id.action_disable_all);
|
|
|
|
if (!accountsLeftToDisable()) {
|
|
|
|
disableAll.setVisible(false);
|
|
|
|
}
|
2014-01-28 13:21:54 -05:00
|
|
|
return true;
|
|
|
|
}
|
2014-02-04 09:09:50 -05:00
|
|
|
|
2014-08-20 05:32:49 -04:00
|
|
|
@Override
|
|
|
|
public boolean onContextItemSelected(MenuItem item) {
|
|
|
|
switch (item.getItemId()) {
|
2015-12-01 08:18:07 -05:00
|
|
|
case R.id.mgmt_account_publish_avatar:
|
|
|
|
publishAvatar(selectedAccount);
|
|
|
|
return true;
|
|
|
|
case R.id.mgmt_account_disable:
|
|
|
|
disableAccount(selectedAccount);
|
|
|
|
return true;
|
|
|
|
case R.id.mgmt_account_enable:
|
|
|
|
enableAccount(selectedAccount);
|
|
|
|
return true;
|
|
|
|
case R.id.mgmt_account_delete:
|
|
|
|
deleteAccount(selectedAccount);
|
|
|
|
return true;
|
|
|
|
case R.id.mgmt_account_announce_pgp:
|
|
|
|
publishOpenPGPPublicKey(selectedAccount);
|
|
|
|
return true;
|
|
|
|
default:
|
|
|
|
return super.onContextItemSelected(item);
|
2014-08-20 05:32:49 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-01-28 13:21:54 -05:00
|
|
|
@Override
|
|
|
|
public boolean onOptionsItemSelected(MenuItem item) {
|
|
|
|
switch (item.getItemId()) {
|
2015-01-03 07:36:48 -05:00
|
|
|
case R.id.action_add_account:
|
|
|
|
startActivity(new Intent(getApplicationContext(),
|
|
|
|
EditAccountActivity.class));
|
|
|
|
break;
|
|
|
|
case R.id.action_disable_all:
|
|
|
|
disableAllAccounts();
|
|
|
|
break;
|
|
|
|
case R.id.action_enable_all:
|
|
|
|
enableAllAccounts();
|
|
|
|
break;
|
2015-10-12 07:18:20 -04:00
|
|
|
case R.id.action_add_account_with_cert:
|
2015-10-09 07:37:08 -04:00
|
|
|
addAccountFromKey();
|
|
|
|
break;
|
2015-01-03 07:36:48 -05:00
|
|
|
default:
|
|
|
|
break;
|
2014-01-28 13:21:54 -05:00
|
|
|
}
|
|
|
|
return super.onOptionsItemSelected(item);
|
|
|
|
}
|
2014-01-28 17:15:30 -05:00
|
|
|
|
2014-05-31 11:50:09 -04:00
|
|
|
@Override
|
|
|
|
public boolean onNavigateUp() {
|
|
|
|
if (xmppConnectionService.getConversations().size() == 0) {
|
2014-07-31 09:09:34 -04:00
|
|
|
Intent contactsIntent = new Intent(this,
|
|
|
|
StartConversationActivity.class);
|
2014-05-31 12:53:23 -04:00
|
|
|
contactsIntent.setFlags(
|
2015-12-01 08:18:07 -05:00
|
|
|
// if activity exists in stack, pop the stack and go back to it
|
2014-05-31 12:53:23 -04:00
|
|
|
Intent.FLAG_ACTIVITY_CLEAR_TOP |
|
2015-12-01 08:18:07 -05:00
|
|
|
// otherwise, make a new task for it
|
2014-07-12 07:42:17 -04:00
|
|
|
Intent.FLAG_ACTIVITY_NEW_TASK |
|
|
|
|
// don't use the new activity animation; finish
|
|
|
|
// animation runs instead
|
|
|
|
Intent.FLAG_ACTIVITY_NO_ANIMATION);
|
2014-05-31 12:53:23 -04:00
|
|
|
startActivity(contactsIntent);
|
2014-05-31 11:50:09 -04:00
|
|
|
finish();
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return super.onNavigateUp();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-13 12:19:40 -04:00
|
|
|
public void onClickTglAccountState(Account account, boolean enable) {
|
|
|
|
if (enable) {
|
2015-04-01 06:14:05 -04:00
|
|
|
enableAccount(account);
|
|
|
|
} else {
|
|
|
|
disableAccount(account);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-09 07:37:08 -04:00
|
|
|
private void addAccountFromKey() {
|
2015-10-20 09:27:33 -04:00
|
|
|
try {
|
|
|
|
KeyChain.choosePrivateKeyAlias(this, this, null, null, null, -1, null);
|
|
|
|
} catch (ActivityNotFoundException e) {
|
2015-12-01 08:18:07 -05:00
|
|
|
Toast.makeText(this, R.string.device_does_not_support_certificates, Toast.LENGTH_LONG).show();
|
2015-10-20 09:27:33 -04:00
|
|
|
}
|
2015-10-09 07:37:08 -04:00
|
|
|
}
|
|
|
|
|
2014-08-20 05:32:49 -04:00
|
|
|
private void publishAvatar(Account account) {
|
|
|
|
Intent intent = new Intent(getApplicationContext(),
|
|
|
|
PublishProfilePictureActivity.class);
|
2016-01-22 14:46:24 -05:00
|
|
|
intent.putExtra(EXTRA_ACCOUNT, account.getJid().toString());
|
2014-08-20 05:32:49 -04:00
|
|
|
startActivity(intent);
|
2014-02-04 15:44:16 -05:00
|
|
|
}
|
2014-07-12 07:42:17 -04:00
|
|
|
|
2015-01-03 07:36:48 -05:00
|
|
|
private void disableAllAccounts() {
|
|
|
|
List<Account> list = new ArrayList<>();
|
|
|
|
synchronized (this.accountList) {
|
|
|
|
for (Account account : this.accountList) {
|
|
|
|
if (!account.isOptionSet(Account.OPTION_DISABLED)) {
|
|
|
|
list.add(account);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-12-01 08:18:07 -05:00
|
|
|
for (Account account : list) {
|
2015-01-03 07:36:48 -05:00
|
|
|
disableAccount(account);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private boolean accountsLeftToDisable() {
|
|
|
|
synchronized (this.accountList) {
|
|
|
|
for (Account account : this.accountList) {
|
|
|
|
if (!account.isOptionSet(Account.OPTION_DISABLED)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private boolean accountsLeftToEnable() {
|
|
|
|
synchronized (this.accountList) {
|
|
|
|
for (Account account : this.accountList) {
|
|
|
|
if (account.isOptionSet(Account.OPTION_DISABLED)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private void enableAllAccounts() {
|
|
|
|
List<Account> list = new ArrayList<>();
|
|
|
|
synchronized (this.accountList) {
|
|
|
|
for (Account account : this.accountList) {
|
|
|
|
if (account.isOptionSet(Account.OPTION_DISABLED)) {
|
|
|
|
list.add(account);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-12-01 08:18:07 -05:00
|
|
|
for (Account account : list) {
|
2015-01-03 07:36:48 -05:00
|
|
|
enableAccount(account);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-08-20 05:32:49 -04:00
|
|
|
private void disableAccount(Account account) {
|
|
|
|
account.setOption(Account.OPTION_DISABLED, true);
|
|
|
|
xmppConnectionService.updateAccount(account);
|
|
|
|
}
|
|
|
|
|
|
|
|
private void enableAccount(Account account) {
|
|
|
|
account.setOption(Account.OPTION_DISABLED, false);
|
|
|
|
xmppConnectionService.updateAccount(account);
|
|
|
|
}
|
|
|
|
|
|
|
|
private void publishOpenPGPPublicKey(Account account) {
|
2014-10-08 10:37:43 -04:00
|
|
|
if (ManageAccountActivity.this.hasPgp()) {
|
2015-12-01 08:18:07 -05:00
|
|
|
choosePgpSignId(selectedAccount);
|
2014-08-20 05:32:49 -04:00
|
|
|
} else {
|
|
|
|
this.showInstallPgpDialog();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private void deleteAccount(final Account account) {
|
2014-10-15 13:32:12 -04:00
|
|
|
AlertDialog.Builder builder = new AlertDialog.Builder(
|
|
|
|
ManageAccountActivity.this);
|
2014-08-20 05:32:49 -04:00
|
|
|
builder.setTitle(getString(R.string.mgmt_account_are_you_sure));
|
|
|
|
builder.setIconAttribute(android.R.attr.alertDialogIcon);
|
|
|
|
builder.setMessage(getString(R.string.mgmt_account_delete_confirm_text));
|
|
|
|
builder.setPositiveButton(getString(R.string.delete),
|
|
|
|
new OnClickListener() {
|
|
|
|
@Override
|
|
|
|
public void onClick(DialogInterface dialog, int which) {
|
|
|
|
xmppConnectionService.deleteAccount(account);
|
|
|
|
selectedAccount = null;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
builder.setNegativeButton(getString(R.string.cancel), null);
|
|
|
|
builder.create().show();
|
2014-02-04 15:44:16 -05:00
|
|
|
}
|
2014-07-12 07:42:17 -04:00
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
|
|
|
super.onActivityResult(requestCode, resultCode, data);
|
|
|
|
if (resultCode == RESULT_OK) {
|
2015-12-01 08:18:07 -05:00
|
|
|
if (xmppConnectionServiceBound) {
|
|
|
|
if (requestCode == REQUEST_CHOOSE_PGP_ID) {
|
|
|
|
if (data.getExtras().containsKey(OpenPgpApi.EXTRA_SIGN_KEY_ID)) {
|
|
|
|
selectedAccount.setPgpSignId(data.getExtras().getLong(OpenPgpApi.EXTRA_SIGN_KEY_ID));
|
|
|
|
announcePgp(selectedAccount, null);
|
|
|
|
} else {
|
|
|
|
choosePgpSignId(selectedAccount);
|
|
|
|
}
|
|
|
|
} else if (requestCode == REQUEST_ANNOUNCE_PGP) {
|
2015-10-29 09:03:41 -04:00
|
|
|
announcePgp(selectedAccount, null);
|
|
|
|
}
|
2015-12-01 08:18:07 -05:00
|
|
|
this.mPostponedActivityResult = null;
|
|
|
|
} else {
|
|
|
|
this.mPostponedActivityResult = new Pair<>(requestCode, data);
|
2014-05-08 10:52:19 -04:00
|
|
|
}
|
2014-07-12 07:42:17 -04:00
|
|
|
}
|
|
|
|
}
|
2015-10-09 07:37:08 -04:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public void alias(String alias) {
|
|
|
|
if (alias != null) {
|
|
|
|
xmppConnectionService.createAccountFromKey(alias, this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onAccountCreated(Account account) {
|
|
|
|
switchToAccount(account, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void informUser(final int r) {
|
|
|
|
runOnUiThread(new Runnable() {
|
|
|
|
@Override
|
|
|
|
public void run() {
|
2015-12-01 08:18:07 -05:00
|
|
|
Toast.makeText(ManageAccountActivity.this, r, Toast.LENGTH_LONG).show();
|
2015-10-09 07:37:08 -04:00
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2014-01-23 20:04:05 -05:00
|
|
|
}
|