Removing hourglass_bottom
Now that we don't show DWB toast for negative remaining time
Bug: 127689526
Change-Id: I3ced3ec0da9bd7b09df9b66b4ef608e87339573f
(cherry picked from commit e921bacfb8
)
This commit is contained in:
parent
ab472e8c06
commit
c6d9ddfddb
|
@ -59,7 +59,6 @@ public final class DigitalWellBeingToast extends LinearLayout {
|
|||
private static final String TAG = DigitalWellBeingToast.class.getSimpleName();
|
||||
|
||||
private Task mTask;
|
||||
private ImageView mImage;
|
||||
private TextView mText;
|
||||
|
||||
public DigitalWellBeingToast(Context context, AttributeSet attrs) {
|
||||
|
@ -75,7 +74,6 @@ public final class DigitalWellBeingToast extends LinearLayout {
|
|||
super.onFinishInflate();
|
||||
|
||||
mText = findViewById(R.id.digital_well_being_remaining_time);
|
||||
mImage = findViewById(R.id.digital_well_being_hourglass);
|
||||
}
|
||||
|
||||
public void initialize(Task task, InitializeCallback callback) {
|
||||
|
@ -103,8 +101,6 @@ public final class DigitalWellBeingToast extends LinearLayout {
|
|||
} else {
|
||||
setVisibility(VISIBLE);
|
||||
mText.setText(getText(appRemainingTimeMs));
|
||||
mImage.setImageResource(appRemainingTimeMs > 0 ?
|
||||
R.drawable.hourglass_top : R.drawable.hourglass_bottom);
|
||||
}
|
||||
|
||||
callback.call(getContentDescriptionForTask(
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<group>
|
||||
<clip-path android:pathData="M0,0H24V24H0Z M 0,0"/>
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M6,2V8H6l4,4L6,16H6v6H18V16h0l-4,-4,4,-4h0V2Zm6,9.5,-4,-4V4h8V7.5Z"/>
|
||||
</group>
|
||||
</vector>
|
|
@ -49,6 +49,7 @@
|
|||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:src="@drawable/ic_hourglass_top"
|
||||
/>
|
||||
<TextView
|
||||
android:id="@+id/digital_well_being_remaining_time"
|
||||
|
|
Loading…
Reference in New Issue