Loading android/app/src/com/android/bluetooth/pbapclient/CallLogPullRequest.java +1 −1 Original line number Diff line number Diff line Loading @@ -88,7 +88,7 @@ public class CallLogPullRequest extends PullRequest { ContentValues values = new ContentValues(); values.put(CallLog.Calls.TYPE, type); values.put(Calls.PHONE_ACCOUNT_ID, mAccount.hashCode()); values.put(Calls.PHONE_ACCOUNT_ID, mAccount.name); List<PhoneData> phones = vcard.getPhoneList(); if (phones == null || phones.get(0).getNumber().equals(";")) { values.put(CallLog.Calls.NUMBER, ""); Loading android/app/src/com/android/bluetooth/pbapclient/PbapClientConnectionHandler.java +2 −2 Original line number Diff line number Diff line Loading @@ -411,8 +411,8 @@ class PbapClientConnectionHandler extends Handler { } return; } String where = Calls.PHONE_ACCOUNT_ID + "=" + account.hashCode(); mContext.getContentResolver().delete(CallLog.Calls.CONTENT_URI, where, null); mContext.getContentResolver().delete(CallLog.Calls.CONTENT_URI, Calls.PHONE_ACCOUNT_ID + "=?", new String[]{mAccount.name}); } catch (IllegalArgumentException e) { Log.d(TAG, "Call Logs could not be deleted, they may not exist yet."); } Loading android/app/src/com/android/bluetooth/pbapclient/PbapClientService.java +6 −5 Original line number Diff line number Diff line Loading @@ -116,14 +116,15 @@ public class PbapClientService extends ProfileService { if (VDBG) Log.v(TAG, "Found " + accounts.length + " unclean accounts"); for (Account acc : accounts) { Log.w(TAG, "Deleting " + acc); // The device ID is the name of the account. accountManager.removeAccountExplicitly(acc); } try { getContentResolver().delete(CallLog.Calls.CONTENT_URI, null, null); getContentResolver().delete(CallLog.Calls.CONTENT_URI, CallLog.Calls.PHONE_ACCOUNT_ID + "=?", new String[]{acc.name}); } catch (IllegalArgumentException e) { Log.w(TAG, "Call Logs could not be deleted, they may not exist yet."); } // The device ID is the name of the account. accountManager.removeAccountExplicitly(acc); } } private class PbapBroadcastReceiver extends BroadcastReceiver { Loading Loading
android/app/src/com/android/bluetooth/pbapclient/CallLogPullRequest.java +1 −1 Original line number Diff line number Diff line Loading @@ -88,7 +88,7 @@ public class CallLogPullRequest extends PullRequest { ContentValues values = new ContentValues(); values.put(CallLog.Calls.TYPE, type); values.put(Calls.PHONE_ACCOUNT_ID, mAccount.hashCode()); values.put(Calls.PHONE_ACCOUNT_ID, mAccount.name); List<PhoneData> phones = vcard.getPhoneList(); if (phones == null || phones.get(0).getNumber().equals(";")) { values.put(CallLog.Calls.NUMBER, ""); Loading
android/app/src/com/android/bluetooth/pbapclient/PbapClientConnectionHandler.java +2 −2 Original line number Diff line number Diff line Loading @@ -411,8 +411,8 @@ class PbapClientConnectionHandler extends Handler { } return; } String where = Calls.PHONE_ACCOUNT_ID + "=" + account.hashCode(); mContext.getContentResolver().delete(CallLog.Calls.CONTENT_URI, where, null); mContext.getContentResolver().delete(CallLog.Calls.CONTENT_URI, Calls.PHONE_ACCOUNT_ID + "=?", new String[]{mAccount.name}); } catch (IllegalArgumentException e) { Log.d(TAG, "Call Logs could not be deleted, they may not exist yet."); } Loading
android/app/src/com/android/bluetooth/pbapclient/PbapClientService.java +6 −5 Original line number Diff line number Diff line Loading @@ -116,14 +116,15 @@ public class PbapClientService extends ProfileService { if (VDBG) Log.v(TAG, "Found " + accounts.length + " unclean accounts"); for (Account acc : accounts) { Log.w(TAG, "Deleting " + acc); // The device ID is the name of the account. accountManager.removeAccountExplicitly(acc); } try { getContentResolver().delete(CallLog.Calls.CONTENT_URI, null, null); getContentResolver().delete(CallLog.Calls.CONTENT_URI, CallLog.Calls.PHONE_ACCOUNT_ID + "=?", new String[]{acc.name}); } catch (IllegalArgumentException e) { Log.w(TAG, "Call Logs could not be deleted, they may not exist yet."); } // The device ID is the name of the account. accountManager.removeAccountExplicitly(acc); } } private class PbapBroadcastReceiver extends BroadcastReceiver { Loading