Settings: Don't show module version if isn't a date
What's the sense on showing Android version instead of date? Change-Id: I4cd2ae780c19182db2f66811be63dff131d26d6b Signed-off-by: Joey Huab <joey@evolution-x.org> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
@@ -71,7 +71,8 @@ public class MainlineModuleVersionPreferenceController extends BasePreferenceCon
|
||||
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
return !TextUtils.isEmpty(mModuleVersion) ? AVAILABLE : UNSUPPORTED_ON_DEVICE;
|
||||
return !TextUtils.isEmpty(mModuleVersion) &&
|
||||
parseDateFromVersionName(mModuleVersion).isPresent() ? AVAILABLE : UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
|
||||
private void initModules() {
|
||||
|
||||
Reference in New Issue
Block a user