Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96e7f0ed authored by John Spurlock's avatar John Spurlock
Browse files

Volume: Move "Muted by" string from sysui to frameworks.

To enable sharing with Settings.

Bug: 17461563
Change-Id: Icdb5f85eb4bcaa1ead7d77c1460e06ad3f0604d5
parent 27936ad3
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -5118,4 +5118,7 @@


    <!-- Zen mode condition - line one: until next alarm. [CHAR LIMIT=NONE] -->
    <!-- Zen mode condition - line one: until next alarm. [CHAR LIMIT=NONE] -->
    <string name="zen_mode_next_alarm_line_one">Until next alarm</string>
    <string name="zen_mode_next_alarm_line_one">Until next alarm</string>

    <!-- Indication that the current volume and other effects (vibration) are being suppressed by a third party, such as a notification listener. [CHAR LIMIT=30] -->
    <string name="muted_by">Muted by <xliff:g id="third_party">%1$s</xliff:g></string>
</resources>
</resources>
+1 −0
Original line number Original line Diff line number Diff line
@@ -1994,6 +1994,7 @@
  <java-symbol type="string" name="zen_mode_next_alarm_summary" />
  <java-symbol type="string" name="zen_mode_next_alarm_summary" />
  <java-symbol type="string" name="zen_mode_next_alarm_line_one" />
  <java-symbol type="string" name="zen_mode_next_alarm_line_one" />
  <java-symbol type="integer" name="config_next_alarm_condition_lookahead_threshold_hrs" />
  <java-symbol type="integer" name="config_next_alarm_condition_lookahead_threshold_hrs" />
  <java-symbol type="string" name="muted_by" />


  <java-symbol type="string" name="item_is_selected" />
  <java-symbol type="string" name="item_is_selected" />
  <java-symbol type="string" name="day_of_week_label_typeface" />
  <java-symbol type="string" name="day_of_week_label_typeface" />
+0 −3
Original line number Original line Diff line number Diff line
@@ -894,9 +894,6 @@
    <!-- continue action for notification educating the user about enabling notifications on the lockscreen. [CHAR LIMIT=20] -->
    <!-- continue action for notification educating the user about enabling notifications on the lockscreen. [CHAR LIMIT=20] -->
    <string name="hidden_notifications_setup">Set up</string>
    <string name="hidden_notifications_setup">Set up</string>


    <!-- Indication that the current volume and other effects (vibration) are being suppressed by a third party, such as a notification listener. [CHAR LIMIT=30] -->
    <string name="muted_by">Muted by <xliff:g id="third_party">%1$s</xliff:g></string>

    <!-- Accessibility string for current zen mode and selected exit condition. A template that simply concatenates existing mode string and the current condition description. [CHAR LIMIT=20] -->
    <!-- Accessibility string for current zen mode and selected exit condition. A template that simply concatenates existing mode string and the current condition description. [CHAR LIMIT=20] -->
    <string name="zen_mode_and_condition"><xliff:g id="zen_mode" example="Priority interruptions only">%1$s</xliff:g>. <xliff:g id="exit_condition" example="For one hour">%2$s</xliff:g></string>
    <string name="zen_mode_and_condition"><xliff:g id="zen_mode" example="Priority interruptions only">%1$s</xliff:g>. <xliff:g id="exit_condition" example="For one hour">%2$s</xliff:g></string>


+1 −1
Original line number Original line Diff line number Diff line
@@ -744,7 +744,7 @@ public class VolumePanel extends Handler implements DemoMode {
        } else {
        } else {
            sc.seekbarView.setVisibility(View.GONE);
            sc.seekbarView.setVisibility(View.GONE);
            sc.suppressorView.setVisibility(View.VISIBLE);
            sc.suppressorView.setVisibility(View.VISIBLE);
            sc.suppressorView.setText(mContext.getString(com.android.systemui.R.string.muted_by,
            sc.suppressorView.setText(mContext.getString(R.string.muted_by,
                    getSuppressorCaption(suppressor)));
                    getSuppressorCaption(suppressor)));
            sc.icon.setImageResource(sc.iconSuppressedRes);
            sc.icon.setImageResource(sc.iconSuppressedRes);
        }
        }