Remove redundant methods and refactor
Remove the summary method and write the code in AOSP directly instead to force string consistency. Also refactor a bit after the modification. Fixes: 276399056 Test: robotests Change-Id: I76ad740b694363a3cdfb3748e41c840fb678b93d
This commit is contained in:
@@ -20,15 +20,8 @@ package com.android.settings.fuelgauge;
|
||||
public interface BatterySettingsFeatureProvider {
|
||||
|
||||
/** Returns true if manufacture date should be shown */
|
||||
boolean isManufactureDateAvailable();
|
||||
boolean isManufactureDateAvailable(long manufactureDateMs);
|
||||
|
||||
/** Returns true if first use date should be shown */
|
||||
boolean isFirstUseDateAvailable();
|
||||
|
||||
/** Returns the summary of battery manufacture date */
|
||||
CharSequence getManufactureDateSummary();
|
||||
|
||||
/** Returns the summary of battery first use date */
|
||||
CharSequence getFirstUseDateSummary();
|
||||
|
||||
boolean isFirstUseDateAvailable(long firstUseDateMs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user