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

Commit 5dba48f2 authored by Yorke Lee's avatar Yorke Lee
Browse files

DO NOT MERGE Fix NPE during activity recreation

Bug: 13630676
Change-Id: I3b68d5f21a4b77eab5b5493dcde670ad08cdc372
parent 7fa4c759
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1008,8 +1008,10 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O

    @Override
    public void setDialButtonEnabled(boolean enabled) {
        if (mDialButton != null) {
            mDialButton.setEnabled(enabled);
        }
    }

    @Override
    public void setDialButtonContainerVisible(boolean visible) {
+3 −0
Original line number Diff line number Diff line
@@ -1563,6 +1563,9 @@ public class DialpadFragment extends Fragment
     * Update the enabledness of the "Dial" and "Backspace" buttons if applicable.
     */
    private void updateDialAndDeleteButtonEnabledState() {
        if (getActivity() == null) {
            return;
        }
        final boolean digitsNotEmpty = !isDigitsEmpty();
        mDelete.setEnabled(digitsNotEmpty);
        // On CDMA phones, if we're already on a call, we *always* enable the Dial button (since