Reduce flaky of DataUsageSummaryPreference
- Set SnapshotTimeMs initial value to unknown - Reserve height for DataUsageSummaryPreference Bug: 341234382 Test: manual - on Mobile Settings Change-Id: I9145f666c5f8fd9595bcc047160fd6da17b3091d
This commit is contained in:
@@ -20,6 +20,7 @@ import android.annotation.AttrRes;
|
||||
import android.content.Context;
|
||||
import android.graphics.Typeface;
|
||||
import android.icu.text.MessageFormat;
|
||||
import android.telephony.SubscriptionPlan;
|
||||
import android.text.Spannable;
|
||||
import android.text.SpannableString;
|
||||
import android.text.TextUtils;
|
||||
@@ -66,7 +67,7 @@ public class DataUsageSummaryPreference extends Preference {
|
||||
@Nullable
|
||||
private Long mCycleEndTimeMs;
|
||||
/** The time of the last update in standard milliseconds since the epoch */
|
||||
private long mSnapshotTimeMs;
|
||||
private long mSnapshotTimeMs = SubscriptionPlan.TIME_UNKNOWN;
|
||||
/** Name of carrier, or null if not available */
|
||||
private CharSequence mCarrierName;
|
||||
private CharSequence mLimitInfoText;
|
||||
|
||||
Reference in New Issue
Block a user