super.commandAction(command, displayable);
else if(!list.isEmpty()&& (command == delItemCmd || command == delAllCmd))
{
if(command == delItemCmd)
{
textConvo crnt = (textConvo)list.elementAt(getSelectedIndex());
String hashkey = (String) crnt.getMsgID();
getInboxHash().remove(hashkey);
if(!crnt.getIsRead())
numUnread--;
updateUnread();
}
if(command == delAllCmd)
{
getInboxHash().clear();
numUnread = 0;
updateUnread();
}
super.commandAction(command, displayable);
}
else if(command == refreshCmd)
{
refreshInbox();
}
else if(!list.isEmpty())
{
int selIndex = this.getSelectedIndex();
textConvo original = (textConvo) list.elementAt(selIndex);
if(command == readCmd)
{
textConvo crnt = (textConvo) list.elementAt(selIndex);
if(!crnt.getIsRead())
markConvoRead(crnt, selIndex);
gvME.dispMan.switchDisplayable(null, new MsgList(crnt));
}
else if(command == replyCmd)
{
WriteMsg wm = new WriteMsg("Reply", original);
gvME.dispMan.switchDisplayable(null, wm);
}
else if(command == callCmd)
{
try{
MakeCall mc = new MakeCall(original.getReplyNum(), original.getSender());
gvME.dispMan.switchDisplayable(null, mc);
}
catch(Exception ex)
{
// System.out.println(ex.toString());
if(ex.toString().indexOf("no call from") >= 0)
{
gvME.dispMan.switchDisplayable(gvME.getNoCallFromAlert(), settings.getChangeSettingsMenu());
}
}
}
else if(command == markUnreadCmd)
{
textConvo crnt = (textConvo) list.elementAt(selIndex);
markConvoRead(crnt, selIndex);
}
}
}