two bugs on tablet fixed

This commit is contained in:
Daniel Gultsch 2014-03-05 21:04:11 +01:00
parent b3f038b700
commit 999b9691cb
2 changed files with 7 additions and 2 deletions

View file

@ -417,7 +417,7 @@ public class ConversationActivity extends XmppActivity {
this.updateConversationList(); this.updateConversationList();
} }
if ((getIntent().getAction().equals(Intent.ACTION_VIEW) && (!handledViewIntent))) { if ((getIntent().getAction()!=null)&&(getIntent().getAction().equals(Intent.ACTION_VIEW) && (!handledViewIntent))) {
if (getIntent().getType().equals( if (getIntent().getType().equals(
ConversationActivity.VIEW_CONVERSATION)) { ConversationActivity.VIEW_CONVERSATION)) {
handledViewIntent = true; handledViewIntent = true;

View file

@ -81,7 +81,12 @@ public class PhoneHelper {
return null; return null;
} else { } else {
mProfileCursor.moveToFirst(); mProfileCursor.moveToFirst();
return Uri.parse(mProfileCursor.getString(1)); String uri = mProfileCursor.getString(1);
if (uri==null) {
return null;
} else {
return Uri.parse(uri);
}
} }
} }
} }