From a548a7a758928c8c675d93454e6a5c85d8b896cb Mon Sep 17 00:00:00 2001 From: Nancy Chen Date: Wed, 9 Jul 2014 11:34:08 -0700 Subject: Remove bluetooth icon from call state banner and change toolbar carrot The call state banner icon will only be used for call provider/wifi icons so the incoming bluetooth icon needs to be removed. Also the 45 degree carrot is being replaced by the downward carrot. Bug: 15767934 Change-Id: I4ff01eba32fe65c05dcb099cb4fe8092ec2b64ef --- .../drawable-hdpi/ic_more_indicator_holo_dark.png | Bin 557 -> 0 bytes .../drawable-hdpi/ic_toolbar_arrow_whitespace.png | Bin 0 -> 489 bytes .../ic_more_indicator_holo_dark.png | Bin 4465 -> 0 bytes .../ic_more_indicator_holo_dark.png | Bin 4278 -> 0 bytes .../ic_more_indicator_holo_dark.png | Bin 4667 -> 0 bytes .../drawable-mdpi/ic_more_indicator_holo_dark.png | Bin 506 -> 0 bytes .../drawable-mdpi/ic_toolbar_arrow_whitespace.png | Bin 0 -> 431 bytes .../drawable-xhdpi/ic_more_indicator_holo_dark.png | Bin 713 -> 0 bytes .../drawable-xhdpi/ic_toolbar_arrow_whitespace.png | Bin 0 -> 543 bytes .../ic_more_indicator_holo_dark.png | Bin 1486 -> 0 bytes .../ic_toolbar_arrow_whitespace.png | Bin 0 -> 1188 bytes InCallUI/res/drawable/btn_compound_audio.xml | 2 +- .../src/com/android/incallui/CallCardFragment.java | 24 ++------------------- .../com/android/incallui/CallCardPresenter.java | 18 +++++----------- 14 files changed, 8 insertions(+), 36 deletions(-) delete mode 100644 InCallUI/res/drawable-hdpi/ic_more_indicator_holo_dark.png create mode 100644 InCallUI/res/drawable-hdpi/ic_toolbar_arrow_whitespace.png delete mode 100644 InCallUI/res/drawable-ldrtl-hdpi/ic_more_indicator_holo_dark.png delete mode 100644 InCallUI/res/drawable-ldrtl-mdpi/ic_more_indicator_holo_dark.png delete mode 100644 InCallUI/res/drawable-ldrtl-xhdpi/ic_more_indicator_holo_dark.png delete mode 100644 InCallUI/res/drawable-mdpi/ic_more_indicator_holo_dark.png create mode 100644 InCallUI/res/drawable-mdpi/ic_toolbar_arrow_whitespace.png delete mode 100644 InCallUI/res/drawable-xhdpi/ic_more_indicator_holo_dark.png create mode 100644 InCallUI/res/drawable-xhdpi/ic_toolbar_arrow_whitespace.png delete mode 100644 InCallUI/res/drawable-xxhdpi/ic_more_indicator_holo_dark.png create mode 100644 InCallUI/res/drawable-xxhdpi/ic_toolbar_arrow_whitespace.png diff --git a/InCallUI/res/drawable-hdpi/ic_more_indicator_holo_dark.png b/InCallUI/res/drawable-hdpi/ic_more_indicator_holo_dark.png deleted file mode 100644 index 554f7e9a7..000000000 Binary files a/InCallUI/res/drawable-hdpi/ic_more_indicator_holo_dark.png and /dev/null differ diff --git a/InCallUI/res/drawable-hdpi/ic_toolbar_arrow_whitespace.png b/InCallUI/res/drawable-hdpi/ic_toolbar_arrow_whitespace.png new file mode 100644 index 000000000..ea02daad2 Binary files /dev/null and b/InCallUI/res/drawable-hdpi/ic_toolbar_arrow_whitespace.png differ diff --git a/InCallUI/res/drawable-ldrtl-hdpi/ic_more_indicator_holo_dark.png b/InCallUI/res/drawable-ldrtl-hdpi/ic_more_indicator_holo_dark.png deleted file mode 100644 index adb18aed0..000000000 Binary files a/InCallUI/res/drawable-ldrtl-hdpi/ic_more_indicator_holo_dark.png and /dev/null differ diff --git a/InCallUI/res/drawable-ldrtl-mdpi/ic_more_indicator_holo_dark.png b/InCallUI/res/drawable-ldrtl-mdpi/ic_more_indicator_holo_dark.png deleted file mode 100644 index 2de388f96..000000000 Binary files a/InCallUI/res/drawable-ldrtl-mdpi/ic_more_indicator_holo_dark.png and /dev/null differ diff --git a/InCallUI/res/drawable-ldrtl-xhdpi/ic_more_indicator_holo_dark.png b/InCallUI/res/drawable-ldrtl-xhdpi/ic_more_indicator_holo_dark.png deleted file mode 100644 index 6fe45cd36..000000000 Binary files a/InCallUI/res/drawable-ldrtl-xhdpi/ic_more_indicator_holo_dark.png and /dev/null differ diff --git a/InCallUI/res/drawable-mdpi/ic_more_indicator_holo_dark.png b/InCallUI/res/drawable-mdpi/ic_more_indicator_holo_dark.png deleted file mode 100644 index 27b6d33e9..000000000 Binary files a/InCallUI/res/drawable-mdpi/ic_more_indicator_holo_dark.png and /dev/null differ diff --git a/InCallUI/res/drawable-mdpi/ic_toolbar_arrow_whitespace.png b/InCallUI/res/drawable-mdpi/ic_toolbar_arrow_whitespace.png new file mode 100644 index 000000000..c39990deb Binary files /dev/null and b/InCallUI/res/drawable-mdpi/ic_toolbar_arrow_whitespace.png differ diff --git a/InCallUI/res/drawable-xhdpi/ic_more_indicator_holo_dark.png b/InCallUI/res/drawable-xhdpi/ic_more_indicator_holo_dark.png deleted file mode 100644 index 3d9897a1b..000000000 Binary files a/InCallUI/res/drawable-xhdpi/ic_more_indicator_holo_dark.png and /dev/null differ diff --git a/InCallUI/res/drawable-xhdpi/ic_toolbar_arrow_whitespace.png b/InCallUI/res/drawable-xhdpi/ic_toolbar_arrow_whitespace.png new file mode 100644 index 000000000..cdaa79d37 Binary files /dev/null and b/InCallUI/res/drawable-xhdpi/ic_toolbar_arrow_whitespace.png differ diff --git a/InCallUI/res/drawable-xxhdpi/ic_more_indicator_holo_dark.png b/InCallUI/res/drawable-xxhdpi/ic_more_indicator_holo_dark.png deleted file mode 100644 index 42f65499f..000000000 Binary files a/InCallUI/res/drawable-xxhdpi/ic_more_indicator_holo_dark.png and /dev/null differ diff --git a/InCallUI/res/drawable-xxhdpi/ic_toolbar_arrow_whitespace.png b/InCallUI/res/drawable-xxhdpi/ic_toolbar_arrow_whitespace.png new file mode 100644 index 000000000..737704018 Binary files /dev/null and b/InCallUI/res/drawable-xxhdpi/ic_toolbar_arrow_whitespace.png differ diff --git a/InCallUI/res/drawable/btn_compound_audio.xml b/InCallUI/res/drawable/btn_compound_audio.xml index adfb8c279..ae4a2de4d 100644 --- a/InCallUI/res/drawable/btn_compound_audio.xml +++ b/InCallUI/res/drawable/btn_compound_audio.xml @@ -45,7 +45,7 @@ - diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index aef9991f7..abc53ae17 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -322,15 +322,14 @@ public class CallCardFragment extends BaseFragment int callState = Call.State.IDLE; if (mPrimary != null) { callState = mPrimary.getState(); - final boolean bluetoothOn = - (AudioModeProvider.getInstance().getAudioMode() == AudioMode.BLUETOOTH); - getUi().setCallState(callState, mPrimary.getDisconnectCause(), bluetoothOn, - getConnectionLabel(), getConnectionIcon(), getGatewayNumber()); + getUi().setCallState(callState, mPrimary.getDisconnectCause(), getConnectionLabel(), + getConnectionIcon(), getGatewayNumber()); } else { - getUi().setCallState(callState, DisconnectCause.NOT_VALID, false, null, null, null); + getUi().setCallState(callState, DisconnectCause.NOT_VALID, null, null, null); } final boolean enableEndCallButton = Call.State.isConnected(callState) && @@ -201,12 +199,6 @@ public class CallCardPresenter extends Presenter @Override public void onAudioMode(int mode) { - if (mPrimary != null && getUi() != null) { - final boolean bluetoothOn = (AudioMode.BLUETOOTH == mode); - - getUi().setCallState(mPrimary.getState(), mPrimary.getDisconnectCause(), bluetoothOn, - getConnectionLabel(), getConnectionIcon(), getGatewayNumber()); - } } @Override @@ -519,8 +511,8 @@ public class CallCardPresenter extends Presenter void setSecondary(boolean show, String name, boolean nameIsNumber, String label, String providerLabel, Drawable providerIcon, boolean isConference, boolean isGeneric); - void setCallState(int state, int cause, boolean bluetoothOn, String connectionLabel, - Drawable connectionIcon, String gatewayNumber); + void setCallState(int state, int cause, String connectionLabel, Drawable connectionIcon, + String gatewayNumber); void setPrimaryCallElapsedTime(boolean show, String duration); void setPrimaryName(String name, boolean nameIsNumber); void setPrimaryImage(Drawable image); -- cgit v1.2.3