diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-08-13 07:31:55 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-08-13 07:31:55 +0000 |
commit | 867e01a44a0df5fc797f02f72eb9c8f4e836ea0d (patch) | |
tree | d3f6a39f026c9628e839dc2989cc53e9e0941a94 | |
parent | ab8729e7c61bea0328fb37243b412a5a5900716b (diff) | |
parent | 017707992c7cce9792116503d465767efda522da (diff) | |
download | android_packages_apps_CellBroadcastReceiver-867e01a44a0df5fc797f02f72eb9c8f4e836ea0d.tar.gz android_packages_apps_CellBroadcastReceiver-867e01a44a0df5fc797f02f72eb9c8f4e836ea0d.tar.bz2 android_packages_apps_CellBroadcastReceiver-867e01a44a0df5fc797f02f72eb9c8f4e836ea0d.zip |
release-request-68cc9b2a-98ae-4fbf-8b56-3e535855f399-for-git_oc-mr1-release-4269864 snap-temp-L25700000092502312
Change-Id: I7ce18d0f64d511182ebdce48728b28c91ac9bf25
-rw-r--r-- | res/drawable/ic_warning_googred.xml | 27 | ||||
-rw-r--r-- | res/layout/cell_broadcast_alert.xml | 6 | ||||
-rw-r--r-- | src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java | 2 |
3 files changed, 31 insertions, 4 deletions
diff --git a/res/drawable/ic_warning_googred.xml b/res/drawable/ic_warning_googred.xml new file mode 100644 index 00000000..c21e6d20 --- /dev/null +++ b/res/drawable/ic_warning_googred.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2017 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0" + android:tint="?android:attr/textColorPrimary" > + <path + android:fillColor="#FFDB4437" + android:pathData="M22.85,19.39L12.93,2.25c-0.41-0.71-1.44-0.71-1.85,0L1.15,19.39C0.73,20.11,1.25,21,2.07,21h19.85 + C22.75,21,23.27,20.11,22.85,19.39z M11,10c0-0.55,0.45-1,1-1s1,0.45,1,1v3c0,0.55-0.45,1-1,1s-1-0.45-1-1V10z M12,18.2 + c-0.61,0-1.1-0.49-1.1-1.1S11.39,16,12,16s1.1,0.49,1.1,1.1C13.1,17.71,12.61,18.2,12,18.2z"/> +</vector>
\ No newline at end of file diff --git a/res/layout/cell_broadcast_alert.xml b/res/layout/cell_broadcast_alert.xml index f6da51e6..a60a0eb6 100644 --- a/res/layout/cell_broadcast_alert.xml +++ b/res/layout/cell_broadcast_alert.xml @@ -96,11 +96,11 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" + android:layout_gravity="end" android:measureWithLargestChild="true"> <Button android:id="@+id/dismissButton" - android:layout_width="0dip" - android:layout_gravity="center_horizontal" - android:layout_weight="1" + android:layout_width="wrap_content" + android:layout_weight="0" android:maxLines="2" style="?android:attr/buttonBarButtonStyle" android:text="@string/button_dismiss" diff --git a/src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java b/src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java index 377144c3..01ef9336 100644 --- a/src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java +++ b/src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java @@ -149,7 +149,7 @@ public class CellBroadcastAlertDialog extends Activity { private boolean initDrawableAndImageView() { if (mWarningIcon == null) { try { - mWarningIcon = getResources().getDrawable(R.drawable.ic_warning_large); + mWarningIcon = getResources().getDrawable(R.drawable.ic_warning_googred); } catch (Resources.NotFoundException e) { Log.e(TAG, "warning icon resource not found", e); return false; |