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

Commit 47b96a7e authored by Michal Labedzki's avatar Michal Labedzki Committed by Matthew Xie
Browse files

Remove missing object to avoid NPE

Initialization of mContentView was removed in commit
af9f1abf, but is still
referenced during timeout causing NPE. Remove reference
as it is not needed.

Bug: 18309654
Change-Id: Id42810a97d638fd761a32069b591fc2b647e3a67
parent fb6e5349
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -75,8 +75,6 @@ public class BluetoothOppIncomingFileConfirmActivity extends AlertActivity imple

    private ContentValues mUpdateValues;

    private TextView mContentView;

    private boolean mTimeout = false;

    private BroadcastReceiver mReceiver = new BroadcastReceiver() {
@@ -200,7 +198,7 @@ public class BluetoothOppIncomingFileConfirmActivity extends AlertActivity imple

    private void onTimeout() {
        mTimeout = true;
        mContentView.setText(getString(R.string.incoming_file_confirm_timeout_content,
        mAlert.setTitle(getString(R.string.incoming_file_confirm_timeout_content,
                mTransInfo.mDeviceName));
        mAlert.getButton(DialogInterface.BUTTON_NEGATIVE).setVisibility(View.GONE);
        mAlert.getButton(DialogInterface.BUTTON_POSITIVE).setText(