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

Commit 05b9e59e authored by Jorge Ruesga's avatar Jorge Ruesga Committed by Marco Brohet
Browse files

DeskClock: Fix pending bugs

Fix some pending bugs from Stopwatch & Countdown:

- Add not translatable to arrays.xml
- Set fragment title size to 18sp (aosp default)
- Push over the add current timer text now adds the current timer, and not reset the timer
- Disallow create a new countdown timer if timer is 0
- Now, when "Lower times are better" is selected for the last lap behaviour, the green color
  is asigned for lower times.

Patch 2: Typos in arrays.xml
         Revert refreshRate patch because it didn't improve the lag when both timers
         are running. Change Digital Time Clock to decrease the redrawing times.
Patch 3: Change "swipe to right" text to "swipe to left", as Simon suggests
         Change layouts to make all buttons fit with the max height of them
         Fix a bug that cause to blink clock when the screen is rotated and the countdown
           is still running
         Protect DeskClockFrament#setWakeLock from NPE when FragmentActivity is null
Patch 4: Fix bug introduced in patch 3: the set button is not update the timer ui.
         Strings: Use unicode chars for copyright symbol
Patch 5: Fix a description and remove unnecessary lines at the bottom of strings.xml
Patch 6: Fix copyright signs, replace CountDown/Stopwatch with Countdown/Stopwatch in
         descriptions, remove useless comment, comply with Android Writing Style
Patch 7: Fix another copyright notice

Change-Id: Iabf564ab5a254f2f8b5d011ce6c08a271885ea1d
parent e40b32fd
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@
            <Button
              android:id="@+id/bt_timer_reset"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_height="match_parent"
              android:layout_weight="1"
              android:textSize="@dimen/main_button_text_size"
              android:text="@string/countdown_actions_reset"
@@ -73,7 +73,7 @@
            <Button
              android:id="@+id/bt_timer_main"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_height="match_parent"
              android:layout_weight="1"
              android:textSize="@dimen/main_button_text_size"
              android:text="@string/countdown_actions_start"
@@ -93,7 +93,7 @@
            <Button
              android:id="@+id/bt_timer_cancel"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_height="match_parent"
              android:layout_weight="1"
              android:textSize="@dimen/main_button_text_size"
              android:text="@string/countdown_actions_cancel"
@@ -102,7 +102,7 @@
            <Button
              android:id="@+id/bt_timer_set"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_height="match_parent"
              android:layout_weight="1"
              android:textSize="@dimen/main_button_text_size"
              android:text="@string/countdown_actions_set"
+3 −3
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@
          <Button
            android:id="@+id/bt_timer_reset"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:textSize="@dimen/main_button_text_size"
            android:text="@string/stopwatch_actions_reset"
@@ -100,7 +100,7 @@
          <Button
            android:id="@+id/bt_timer_main"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:textSize="@dimen/main_button_text_size"
            android:text="@string/stopwatch_actions_start"
@@ -109,7 +109,7 @@
          <Button
            android:id="@+id/bt_timer_partial"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:textSize="@dimen/main_button_text_size"
            android:text="@string/stopwatch_actions_lap"
+4 −4
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@
      <Button
        android:id="@+id/bt_timer_reset"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:textSize="@dimen/main_button_text_size"
        android:text="@string/countdown_actions_reset"
@@ -66,7 +66,7 @@
      <Button
        android:id="@+id/bt_timer_main"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:textSize="@dimen/main_button_text_size"
        android:text="@string/countdown_actions_start"
@@ -88,7 +88,7 @@
      <Button
        android:id="@+id/bt_timer_cancel"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:textSize="@dimen/main_button_text_size"
        android:text="@string/countdown_actions_cancel"
@@ -97,7 +97,7 @@
      <Button
        android:id="@+id/bt_timer_set"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:textSize="@dimen/main_button_text_size"
        android:text="@string/countdown_actions_set"
+3 −3
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@
    <Button
      android:id="@+id/bt_timer_reset"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_height="match_parent"
      android:layout_weight="1"
      android:textSize="@dimen/main_button_text_size"
      android:text="@string/stopwatch_actions_reset"
@@ -94,7 +94,7 @@
    <Button
      android:id="@+id/bt_timer_main"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_height="match_parent"
      android:layout_weight="1"
      android:textSize="@dimen/main_button_text_size"
      android:text="@string/stopwatch_actions_start"
@@ -103,7 +103,7 @@
    <Button
      android:id="@+id/bt_timer_partial"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_height="match_parent"
      android:layout_weight="1"
      android:textSize="@dimen/main_button_text_size"
      android:text="@string/stopwatch_actions_lap"
+41 −44
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!--
 ** Copyright (C) 2012 The CyanogenMod 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.
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 The CyanogenMod 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.
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">

  <!-- StopWatch. Best lap behaviour labels -->
  <string-array name="stopwatch_best_lap_behaviour_labels">
    <!-- Stopwatch. Best lap behaviour labels -->
    <string-array name="stopwatch_best_lap_behaviour_labels" translatable="false">
        <item>@string/stopwatch_best_lap_lower_pref</item>
        <item>@string/stopwatch_best_lap_highest_pref</item>
    </string-array>

  <!-- StopWatch. Best lap behaviour summary -->
  <string-array name="stopwatch_best_lap_behaviour_summary">
    <!-- Stopwatch. Best lap behaviour summary -->
    <string-array name="stopwatch_best_lap_behaviour_summary" translatable="false">
        <item>@string/stopwatch_best_lap_lower_pref_summary</item>
        <item>@string/stopwatch_best_lap_highest_pref_summary</item>
    </string-array>

  <!-- StopWatch. Best lap behaviour values -->
  <string-array name="stopwatch_best_lap_behaviour_values" translable="false">
    <!-- Stopwatch. Best lap behaviour values -->
    <string-array name="stopwatch_best_lap_behaviour_values" translatable="false">
        <item>0</item>
        <item>1</item>
    </string-array>

    <!-- CountDown. Vibrate labels -->
  <string-array name="countdown_vibrate_labels">
    <string-array name="countdown_vibrate_labels" translatable="false">
        <item>@string/countdown_notification_onfinalcountdown_vibrate_always</item>
        <item>@string/countdown_notification_onfinalcountdown_vibrate_only_when_silent</item>
        <item>@string/countdown_notification_onfinalcountdown_vibrate_never</item>
    </string-array>

    <!-- CountDown. Vibrate values -->
  <string-array name="countdown_vibrate_values" translable="false">
    <string-array name="countdown_vibrate_values" translatable="false">
        <item>0</item>
        <item>1</item>
        <item>2</item>
Loading