Use DateUtils to build account sync timestamp
Change-Id: I2158855bd2caba42f64d24ab2fb00c6b561e5cef Fixes: 77913394 Test: visual
This commit is contained in:
@@ -33,8 +33,6 @@ import com.android.settings.Utils;
|
||||
import com.android.settingslib.accounts.AuthenticatorHelper;
|
||||
import com.android.settingslib.utils.ThreadUtils;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
abstract class AccountPreferenceBase extends SettingsPreferenceFragment
|
||||
implements AuthenticatorHelper.OnAccountsUpdateListener {
|
||||
|
||||
@@ -129,9 +127,4 @@ abstract class AccountPreferenceBase extends SettingsPreferenceFragment
|
||||
protected CharSequence getLabelForType(final String accountType) {
|
||||
return mAuthenticatorHelper.getLabelForType(getActivity(), accountType);
|
||||
}
|
||||
|
||||
protected String formatSyncDate(Date date) {
|
||||
// TODO: Switch to using DateUtils.formatDateTime
|
||||
return mDateFormat.format(date) + " " + mTimeFormat.format(date);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user