am e7f68c18: Merge "Volume footer uglification." into mnc-dev
* commit 'e7f68c18bf1a1da5d0aa129674fe4f9ecf06ac8c': Volume footer uglification.
This commit is contained in:
@@ -4104,6 +4104,9 @@
|
||||
<!-- Zen mode condition: no exit criteria. [CHAR LIMIT=NONE] -->
|
||||
<string name="zen_mode_forever">Until you turn this off</string>
|
||||
|
||||
<!-- Zen mode condition: no exit criteria, includes the name of the feature for emphasis. [CHAR LIMIT=NONE] -->
|
||||
<string name="zen_mode_forever_dnd">Until you turn off Do Not Disturb</string>
|
||||
|
||||
<!-- Zen mode active automatic rule name separator. [CHAR LIMIT=NONE] -->
|
||||
<string name="zen_mode_rule_name_combination"><xliff:g id="first" example="Weeknights">%1$s</xliff:g> / <xliff:g id="rest" example="Meetings">%2$s</xliff:g></string>
|
||||
|
||||
|
||||
@@ -2054,6 +2054,7 @@
|
||||
<java-symbol type="dimen" name="timepicker_text_size_inner" />
|
||||
<java-symbol type="string" name="battery_saver_description" />
|
||||
<java-symbol type="string" name="zen_mode_forever" />
|
||||
<java-symbol type="string" name="zen_mode_forever_dnd" />
|
||||
<java-symbol type="string" name="zen_mode_rule_name_combination" />
|
||||
<java-symbol type="plurals" name="zen_mode_duration_minutes" />
|
||||
<java-symbol type="plurals" name="zen_mode_duration_hours" />
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
android:id="@+id/zen_embedded_divider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@color/qs_tile_divider" />
|
||||
|
||||
@@ -53,26 +53,34 @@
|
||||
android:id="@+id/volume_zen_summary_line_1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textDirection="locale"
|
||||
android:textAppearance="@style/TextAppearance.Volume.ZenSummary" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/volume_zen_summary_line_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="1dp"
|
||||
android:textDirection="locale"
|
||||
android:textAppearance="@style/TextAppearance.Volume.ZenDetail" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/volume_zen_end_now"
|
||||
style="@style/QSBorderlessButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:minWidth="91dp"
|
||||
android:text="@string/volume_zen_end_now"
|
||||
android:textColor="@color/system_accent_color"
|
||||
android:textAppearance="@style/TextAppearance.QS.DetailButton" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/volume_zen_end_now"
|
||||
style="@style/QSBorderlessButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:paddingStart="15dp"
|
||||
android:paddingEnd="15dp"
|
||||
android:text="@string/volume_zen_end_now"
|
||||
android:textColor="@color/system_accent_color"
|
||||
android:textAppearance="@style/TextAppearance.QS.DetailButton" />
|
||||
|
||||
</com.android.systemui.volume.ZenFooter>
|
||||
@@ -126,8 +126,12 @@ public class ZenFooter extends LinearLayout {
|
||||
: null;
|
||||
Util.setText(mSummaryLine1, line1);
|
||||
|
||||
final String line2 = ZenModeConfig.getConditionSummary(mContext, mConfig,
|
||||
mController.getCurrentUser(), true /*shortVersion*/);
|
||||
final boolean isForever = mConfig != null && mConfig.manualRule != null
|
||||
&& mConfig.manualRule.conditionId == null;
|
||||
final String line2 =
|
||||
isForever ? mContext.getString(com.android.internal.R.string.zen_mode_forever_dnd)
|
||||
: ZenModeConfig.getConditionSummary(mContext, mConfig, mController.getCurrentUser(),
|
||||
true /*shortVersion*/);
|
||||
Util.setText(mSummaryLine2, line2);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user