return null when setting is missing

This commit is contained in:
Caleb Allen 2019-11-20 20:34:41 -08:00
parent 9f019e0d85
commit a95766d4a5

View file

@ -881,7 +881,7 @@ public class PrefsUtils {
}
public static String getWidgetFeed(Context context, int widgetId) {
SharedPreferences preferences = context.getSharedPreferences(PrefConstants.PREFERENCES, 0);
String feedId = preferences.getString(PrefConstants.WIDGET_FEED_ID + widgetId, "0");
String feedId = preferences.getString(PrefConstants.WIDGET_FEED_ID + widgetId, null);
return feedId;
}
public static String getWidgetFeedName(Context context, int widgetId) {