add missing permission result handling in StartConversationActivity

This commit is contained in:
Daniel Gultsch 2018-03-04 09:08:59 +01:00
parent c1c314f47a
commit 76732af63d
1 changed files with 1 additions and 0 deletions

View File

@ -752,6 +752,7 @@ public class StartConversationActivity extends XmppActivity implements OnRosterU
public void onRequestPermissionsResult(int requestCode, @NonNull String permissions[], @NonNull int[] grantResults) {
if (grantResults.length > 0)
if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {
ScanActivity.onRequestPermissionResult(this,requestCode,grantResults);
if (requestCode == REQUEST_SYNC_CONTACTS && xmppConnectionServiceBound) {
xmppConnectionService.loadPhoneContacts();
}