diff options
author | Brandon Maxwell <maxwelb@google.com> | 2016-01-14 01:04:41 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-01-14 01:04:41 +0000 |
commit | d4947e51b0b3336ff9da03275ff48a7632fe0268 (patch) | |
tree | 497d91423b62dd05c9b383ae4cd21e41c1446847 | |
parent | 5a2e66ce9aa28b0f2d942f5c9dd772690c0fd5da (diff) | |
parent | 3ec50749b2c6661ce5b209da0f3dc4bdc4ded50f (diff) |
Merge "Revert "Changes needed to make Incoming calls work while fbe locked"" into ub-contactsdialer-b-dev
-rw-r--r-- | AndroidManifest.xml | 6 | ||||
-rw-r--r-- | src/com/android/dialer/database/FilteredNumberAsyncQueryHandler.java | 9 |
2 files changed, 6 insertions, 9 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 2ec57b93d..91c91b940 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -294,8 +294,7 @@ android:launchMode="singleInstance" android:configChanges="keyboardHidden" android:exported="false" - android:screenOrientation="nosensor" - android:encryptionAware="true"> + android:screenOrientation="nosensor" > </activity> <!-- BroadcastReceiver for receiving Intents from Notification mechanism. --> @@ -303,8 +302,7 @@ android:exported="false" /> <service android:name="com.android.incallui.InCallServiceImpl" - android:permission="android.permission.BIND_INCALL_SERVICE" - android:encryptionAware="true"> + android:permission="android.permission.BIND_INCALL_SERVICE" > <meta-data android:name="android.telecom.IN_CALL_SERVICE_UI" android:value="true" /> <intent-filter> <action android:name="android.telecom.InCallService"/> diff --git a/src/com/android/dialer/database/FilteredNumberAsyncQueryHandler.java b/src/com/android/dialer/database/FilteredNumberAsyncQueryHandler.java index ff9b1be5d..06aca78b5 100644 --- a/src/com/android/dialer/database/FilteredNumberAsyncQueryHandler.java +++ b/src/com/android/dialer/database/FilteredNumberAsyncQueryHandler.java @@ -134,7 +134,7 @@ public class FilteredNumberAsyncQueryHandler extends AsyncQueryHandler { new Listener() { @Override protected void onQueryComplete(int token, Object cookie, Cursor cursor) { - listener.onHasBlockedNumbers(cursor != null && cursor.getCount() > 0); + listener.onHasBlockedNumbers(cursor.getCount() > 0); } }, getContentUri(null), @@ -161,7 +161,7 @@ public class FilteredNumberAsyncQueryHandler extends AsyncQueryHandler { new Listener() { @Override protected void onQueryComplete(int token, Object cookie, Cursor cursor) { - if (cursor == null || cursor.getCount() != 1) { + if (cursor.getCount() != 1) { listener.onCheckComplete(null); return; } @@ -246,10 +246,9 @@ public class FilteredNumberAsyncQueryHandler extends AsyncQueryHandler { startQuery(NO_TOKEN, new Listener() { @Override public void onQueryComplete(int token, Object cookie, Cursor cursor) { - int rowsReturned = cursor == null ? 0 : cursor.getCount(); - if (rowsReturned != 1) { + if (cursor.getCount() != 1) { throw new SQLiteDatabaseCorruptException - ("Returned " + rowsReturned + " rows for uri " + ("Returned " + cursor.getCount() + " rows for uri " + uri + "where 1 expected."); } cursor.moveToFirst(); |