From c5786a684304a505779b61e6a80c44e930ea3136 Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Sat, 3 Apr 2021 20:48:21 +0900 Subject: [PATCH] Set tabOrderString value with default graph names when its empty --- app/src/main/java/awais/instagrabber/utils/Utils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/awais/instagrabber/utils/Utils.java b/app/src/main/java/awais/instagrabber/utils/Utils.java index e6824d84..6f711a45 100644 --- a/app/src/main/java/awais/instagrabber/utils/Utils.java +++ b/app/src/main/java/awais/instagrabber/utils/Utils.java @@ -476,6 +476,7 @@ public final class Utils { final List top5navGraphNames = navGraphNameList.subList(0, 5); final String newOrderString = android.text.TextUtils.join(",", top5navGraphNames); Utils.settingsHelper.putString(PreferenceKeys.PREF_TAB_ORDER, newOrderString); + tabOrderString = newOrderString; return top5navGraphNames; } // Make sure that the list from preference does not contain any invalid values