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

Commit a2955d42 authored by Yorke Lee's avatar Yorke Lee Committed by Android Git Automerger
Browse files

am 1dd46a5c: Fix crash in Dialer in landscape mode

* commit '1dd46a5c':
  Fix crash in Dialer in landscape mode
parents c41cd95d 1dd46a5c
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -378,7 +378,8 @@ public class DialpadFragment extends Fragment
        mDialpadChooser = (ListView) fragmentView.findViewById(R.id.dialpadChooser);
        mDialpadChooser.setOnItemClickListener(this);

        // Smart dial
        // Smart dial container. This is null if in landscape mode since it is not present
        // in the landscape dialer layout.
        mSmartDialContainer = (RelativeLayout) fragmentView.findViewById(
                R.id.dialpad_smartdial_container);

@@ -574,7 +575,7 @@ public class DialpadFragment extends Fragment

        // retrieve dialpad autocomplete setting
        mSmartDialEnabled = Settings.Secure.getInt(contentResolver,
                Settings.Secure.DIALPAD_AUTOCOMPLETE, 0) == 1;
                Settings.Secure.DIALPAD_AUTOCOMPLETE, 0) == 1 && mSmartDialContainer != null;

        stopWatch.lap("dtwd");

@@ -1721,7 +1722,9 @@ public class DialpadFragment extends Fragment
                mSmartDialCache.cacheIfNeeded(true);
            }
        } else {
            if (mSmartDialContainer != null) {
                mSmartDialContainer.setVisibility(View.GONE);
            }
            mSmartDialCache = null;
        }
    }