Skip to content

Commit e43b88c

Browse files
committed
Default Format value set to standard if value is not in format map
1 parent 49661eb commit e43b88c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress/src/main/java/org/wordpress/android/ui/prefs/SiteSettingsInterface.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public int getDefaultCategory() {
317317
}
318318

319319
public @NonNull String getDefaultPostFormat() {
320-
if (TextUtils.isEmpty(mSettings.defaultPostFormat)) {
320+
if (TextUtils.isEmpty(mSettings.defaultPostFormat) || !getFormats().containsKey(mSettings.defaultPostFormat)) {
321321
mSettings.defaultPostFormat = STANDARD_POST_FORMAT_KEY;
322322
}
323323
return mSettings.defaultPostFormat;

0 commit comments

Comments
 (0)