Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_apps_Bluetooth
Commits
d329befd
Commit
d329befd
authored
12 years ago
by
Adam Powell
Committed by
Gerrit Code Review
12 years ago
Browse files
Options
Download
Plain Diff
Merge "Bluetooth: Use proper holo alert drawable"
parents
c653f73b
09f5dca9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/com/android/bluetooth/opp/BluetoothOppBtEnableActivity.java
...m/android/bluetooth/opp/BluetoothOppBtEnableActivity.java
+1
-1
src/com/android/bluetooth/opp/BluetoothOppBtErrorActivity.java
...om/android/bluetooth/opp/BluetoothOppBtErrorActivity.java
+1
-1
src/com/android/bluetooth/opp/BluetoothOppTransferActivity.java
...m/android/bluetooth/opp/BluetoothOppTransferActivity.java
+4
-4
No files found.
src/com/android/bluetooth/opp/BluetoothOppBtEnableActivity.java
View file @
d329befd
...
...
@@ -56,7 +56,7 @@ public class BluetoothOppBtEnableActivity extends AlertActivity implements
// Set up the "dialog"
final
AlertController
.
AlertParams
p
=
mAlertParams
;
p
.
mIconId
=
android
.
R
.
drawable
.
ic_dialog_alert
;
p
.
mIcon
Attr
Id
=
android
.
R
.
attr
.
alertDialogIcon
;
p
.
mTitle
=
getString
(
R
.
string
.
bt_enable_title
);
p
.
mView
=
createView
();
p
.
mPositiveButtonText
=
getString
(
R
.
string
.
bt_enable_ok
);
...
...
This diff is collapsed.
Click to expand it.
src/com/android/bluetooth/opp/BluetoothOppBtErrorActivity.java
View file @
d329befd
...
...
@@ -61,7 +61,7 @@ public class BluetoothOppBtErrorActivity extends AlertActivity implements
// Set up the "dialog"
final
AlertController
.
AlertParams
p
=
mAlertParams
;
p
.
mIconId
=
android
.
R
.
drawable
.
ic_dialog_alert
;
p
.
mIcon
Attr
Id
=
android
.
R
.
attr
.
alertDialogIcon
;
p
.
mTitle
=
mErrorTitle
;
p
.
mView
=
createView
();
p
.
mPositiveButtonText
=
getString
(
R
.
string
.
bt_error_btn_ok
);
...
...
This diff is collapsed.
Click to expand it.
src/com/android/bluetooth/opp/BluetoothOppTransferActivity.java
View file @
d329befd
...
...
@@ -223,14 +223,14 @@ public class BluetoothOppTransferActivity extends AlertActivity implements
mPara
.
mPositiveButtonText
=
getString
(
R
.
string
.
download_succ_ok
);
mPara
.
mPositiveButtonListener
=
this
;
}
else
if
(
mWhichDialog
==
DIALOG_RECEIVE_COMPLETE_FAIL
)
{
mPara
.
mIconId
=
android
.
R
.
drawable
.
ic_dialog_alert
;
mPara
.
mIcon
Attr
Id
=
android
.
R
.
attr
.
alertDialogIcon
;
mPara
.
mPositiveButtonText
=
getString
(
R
.
string
.
download_fail_ok
);
mPara
.
mPositiveButtonListener
=
this
;
}
else
if
(
mWhichDialog
==
DIALOG_SEND_COMPLETE_SUCCESS
)
{
mPara
.
mPositiveButtonText
=
getString
(
R
.
string
.
upload_succ_ok
);
mPara
.
mPositiveButtonListener
=
this
;
}
else
if
(
mWhichDialog
==
DIALOG_SEND_COMPLETE_FAIL
)
{
mPara
.
mIconId
=
android
.
R
.
drawable
.
ic_dialog_alert
;
mPara
.
mIcon
Attr
Id
=
android
.
R
.
attr
.
alertDialogIcon
;
mPara
.
mPositiveButtonText
=
getString
(
R
.
string
.
upload_fail_ok
);
mPara
.
mPositiveButtonListener
=
this
;
mPara
.
mNegativeButtonText
=
getString
(
R
.
string
.
upload_fail_cancel
);
...
...
@@ -458,7 +458,7 @@ public class BluetoothOppTransferActivity extends AlertActivity implements
mAlert
.
getButton
(
DialogInterface
.
BUTTON_POSITIVE
).
setText
(
getString
(
R
.
string
.
download_succ_ok
));
}
else
if
(
mWhichDialog
==
DIALOG_RECEIVE_COMPLETE_FAIL
)
{
mAlert
.
setIcon
(
android
.
R
.
drawable
.
ic_dialog_alert
);
mAlert
.
setIcon
(
mAlert
.
getIconAttributeResId
(
android
.
R
.
attr
.
alertDialogIcon
)
);
mAlert
.
getButton
(
DialogInterface
.
BUTTON_NEGATIVE
).
setVisibility
(
View
.
GONE
);
mAlert
.
getButton
(
DialogInterface
.
BUTTON_POSITIVE
).
setText
(
getString
(
R
.
string
.
download_fail_ok
));
...
...
@@ -467,7 +467,7 @@ public class BluetoothOppTransferActivity extends AlertActivity implements
mAlert
.
getButton
(
DialogInterface
.
BUTTON_POSITIVE
).
setText
(
getString
(
R
.
string
.
upload_succ_ok
));
}
else
if
(
mWhichDialog
==
DIALOG_SEND_COMPLETE_FAIL
)
{
mAlert
.
setIcon
(
android
.
R
.
drawable
.
ic_dialog_alert
);
mAlert
.
setIcon
(
mAlert
.
getIconAttributeResId
(
android
.
R
.
attr
.
alertDialogIcon
)
);
mAlert
.
getButton
(
DialogInterface
.
BUTTON_POSITIVE
).
setText
(
getString
(
R
.
string
.
upload_fail_ok
));
mAlert
.
getButton
(
DialogInterface
.
BUTTON_NEGATIVE
).
setText
(
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment