Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82393b83 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge changes I09e8be0d,Ic94816e1

* changes:
  Fix bug that soft keyboard pushes action bar out of window.
  Added 2 null checks to fix top crashers.
parents 46cdf805 a4a4df95
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -103,7 +103,8 @@ public final class SearchContactsCursorLoader extends CursorLoader {
  static class SmartDialCursor extends MergeCursor implements SearchCursor {

    static SmartDialCursor newInstance(Context context, Cursor smartDialCursor) {
      if (smartDialCursor.getCount() == 0) {
      if (smartDialCursor == null || smartDialCursor.getCount() == 0) {
        LogUtil.i("SmartDialCursor.newInstance", "Cursor was null or empty");
        return new SmartDialCursor(new Cursor[] {new MatrixCursor(Projections.CP2_PROJECTION)});
      }

@@ -173,7 +174,8 @@ public final class SearchContactsCursorLoader extends CursorLoader {
  static class RegularSearchCursor extends MergeCursor implements SearchCursor {

    static RegularSearchCursor newInstance(Context context, Cursor regularSearchCursor) {
      if (regularSearchCursor.getCount() == 0) {
      if (regularSearchCursor == null || regularSearchCursor.getCount() == 0) {
        LogUtil.i("RegularSearchCursor.newInstance", "Cursor was null or empty");
        return new RegularSearchCursor(new Cursor[] {new MatrixCursor(Projections.CP2_PROJECTION)});
      }

+5 −0
Original line number Diff line number Diff line
@@ -71,6 +71,11 @@ public final class DirectoriesCursorLoader extends CursorLoader {
   * @return A list of directories.
   */
  public static List<Directory> toDirectories(Cursor cursor) {
    if (cursor == null) {
      LogUtil.i("DirectoriesCursorLoader.toDirectories", "Cursor was null");
      return new ArrayList<>();
    }

    List<Directory> directories = new ArrayList<>();
    cursor.moveToPosition(-1);
    while (cursor.moveToNext()) {
+2 −1
Original line number Diff line number Diff line
@@ -63,7 +63,8 @@
        android:resizeableActivity="true"
        android:screenOrientation="nosensor"
        android:taskAffinity="com.android.incallui"
        android:theme="@style/Theme.InCallScreen">
        android:theme="@style/Theme.InCallScreen"
        android:windowSoftInputMode="adjustResize">
    </activity>

    <activity
+1 −2
Original line number Diff line number Diff line
@@ -17,8 +17,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/dialer_theme_color"
    android:fitsSystemWindows="true">
    android:background="@color/dialer_theme_color">

  <include layout="@layout/rtt_banner"/>