Fixed array out of bound issue
This commit is contained in:
parent
355ecf7ec8
commit
818177e374
1 changed files with 11 additions and 9 deletions
|
@ -132,6 +132,7 @@ public class StatusFragment extends Fragment {
|
||||||
int unreadCount;
|
int unreadCount;
|
||||||
String data = content.getStringBuffer();
|
String data = content.getStringBuffer();
|
||||||
String[] voiceMail = data.split("voice-message: ");
|
String[] voiceMail = data.split("voice-message: ");
|
||||||
|
if (voiceMail.length >= 2) {
|
||||||
final String[] intToParse = voiceMail[1].split("/", 0);
|
final String[] intToParse = voiceMail[1].split("/", 0);
|
||||||
|
|
||||||
unreadCount = Integer.parseInt(intToParse[0]);
|
unreadCount = Integer.parseInt(intToParse[0]);
|
||||||
|
@ -144,6 +145,7 @@ public class StatusFragment extends Fragment {
|
||||||
mVoicemailCount.setVisibility(View.GONE);
|
mVoicemailCount.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
mIsAttached = true;
|
mIsAttached = true;
|
||||||
|
|
Loading…
Reference in a new issue