diff options
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/bluetooth/opp/BluetoothOppIncomingFileConfirmActivity.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/bluetooth/opp/BluetoothOppIncomingFileConfirmActivity.java b/src/com/android/bluetooth/opp/BluetoothOppIncomingFileConfirmActivity.java index 312aff084..727b0366a 100644 --- a/src/com/android/bluetooth/opp/BluetoothOppIncomingFileConfirmActivity.java +++ b/src/com/android/bluetooth/opp/BluetoothOppIncomingFileConfirmActivity.java @@ -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,8 +198,10 @@ public class BluetoothOppIncomingFileConfirmActivity extends AlertActivity imple private void onTimeout() { mTimeout = true; - mContentView.setText(getString(R.string.incoming_file_confirm_timeout_content, - mTransInfo.mDeviceName)); + View view = getLayoutInflater().inflate(R.layout.incoming_dialog, null); + + ((TextView)view.findViewById(R.id.from_content)).setText( + getString(R.string.incoming_file_confirm_timeout_content, mTransInfo.mDeviceName)); mAlert.getButton(DialogInterface.BUTTON_NEGATIVE).setVisibility(View.GONE); mAlert.getButton(DialogInterface.BUTTON_POSITIVE).setText( getString(R.string.incoming_file_confirm_timeout_ok)); |