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

Commit 33d935bc authored by Budi Kusmiantoro's avatar Budi Kusmiantoro
Browse files

Improve talkback strings on Alarm firing page

Bug: 18689429
Change-Id: I3bd5a47e72e079d942ca82707d4096068ad5b1e5
parent f30efd11
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@
            android:layout_gravity="center"
            android:background="@drawable/bg_circle_white" />

        <ImageButton
        <ImageView
            android:id="@+id/snooze"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
@@ -78,10 +78,10 @@
            android:layout_columnWeight="1"
            android:layout_gravity="center"
            android:background="@drawable/bg_circle_pink"
            android:contentDescription="@string/alarm_alert_snooze_text"
            android:contentDescription="@string/description_direction_left"
            android:src="@drawable/ic_snooze" />

        <ImageButton
        <ImageView
            android:id="@+id/dismiss"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
@@ -90,10 +90,10 @@
            android:layout_columnWeight="1"
            android:layout_gravity="center"
            android:background="@drawable/bg_circle_white"
            android:contentDescription="@string/alarm_alert_dismiss_text"
            android:contentDescription="@string/description_direction_right"
            android:src="@drawable/ic_alarm_off" />

        <ImageButton
        <ImageView
            android:id="@+id/alarm"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
+8 −8
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ import android.view.ViewGroupOverlay;
import android.view.WindowManager;
import android.view.animation.Interpolator;
import android.view.animation.PathInterpolator;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextClock;
import android.widget.TextView;

@@ -123,9 +123,9 @@ public class AlarmActivity extends Activity implements View.OnClickListener, Vie
    private TextView mAlertInfoView;

    private ViewGroup mContentView;
    private ImageButton mAlarmButton;
    private ImageButton mSnoozeButton;
    private ImageButton mDismissButton;
    private ImageView mAlarmButton;
    private ImageView mSnoozeButton;
    private ImageView mDismissButton;
    private TextView mHintView;

    private ValueAnimator mAlarmAnimator;
@@ -182,9 +182,9 @@ public class AlarmActivity extends Activity implements View.OnClickListener, Vie
        mAlertInfoView = (TextView) mAlertView.findViewById(R.id.alert_info);

        mContentView = (ViewGroup) mContainerView.findViewById(R.id.content);
        mAlarmButton = (ImageButton) mContentView.findViewById(R.id.alarm);
        mSnoozeButton = (ImageButton) mContentView.findViewById(R.id.snooze);
        mDismissButton = (ImageButton) mContentView.findViewById(R.id.dismiss);
        mAlarmButton = (ImageView) mContentView.findViewById(R.id.alarm);
        mSnoozeButton = (ImageView) mContentView.findViewById(R.id.snooze);
        mDismissButton = (ImageView) mContentView.findViewById(R.id.dismiss);
        mHintView = (TextView) mContentView.findViewById(R.id.hint);

        final TextView titleView = (TextView) mContentView.findViewById(R.id.title);
@@ -390,7 +390,7 @@ public class AlarmActivity extends Activity implements View.OnClickListener, Vie
        return Math.max(Math.min((x - x0) / (x1 - x0), 1.0f), 0.0f);
    }

    private ValueAnimator getButtonAnimator(ImageButton button, int tintColor) {
    private ValueAnimator getButtonAnimator(ImageView button, int tintColor) {
        return ObjectAnimator.ofPropertyValuesHolder(button,
                PropertyValuesHolder.ofFloat(View.SCALE_X, BUTTON_SCALE_DEFAULT, 1.0f),
                PropertyValuesHolder.ofFloat(View.SCALE_Y, BUTTON_SCALE_DEFAULT, 1.0f),