public override void Refresh(AndroidManifest manifest) { if (!manifest.HasMetaData(metaDataName)) { if (!defaulted) { defaulted = true; userInput = defaultValue; } return; } var value = manifest.GetMetaData(metaDataName); if (userInput == metaDataValue) userInput = value; metaDataValue = value; }
public override void Refresh(AndroidManifest manifest) { if (!manifest.HasMetaData(metaDataName)) { if (!defaulted) { defaulted = true; userInput = defaultValue; } return; } var value = manifest.GetMetaData(metaDataName); if (((int)userInput == 0) && string.IsNullOrEmpty(metaDataValue)) { userInput = (Gravity)GravityConverter.FromInt(int.Parse(value)); } metaDataValue = value; }