Added a safety comment in tabs restoration method to avoid unexpected modifications in it

This commit is contained in:
s-ayush2903 2021-01-18 13:03:09 +05:30
parent 3748b17eaf
commit e9500b3faf
No known key found for this signature in database
GPG Key ID: B4341DD08B2371CB

View File

@ -1561,6 +1561,8 @@ public abstract class CoreReaderFragment extends BaseFragment
return Math.max(settings.getInt(TAG_CURRENT_TAB, 0), 0); return Math.max(settings.getInt(TAG_CURRENT_TAB, 0), 0);
} }
/* This method restores tabs state in new launches, do not modify it
unless it is explicitly mentioned in the issue you're fixing */
protected void restoreTabs(@Nullable String zimArticles, @Nullable String zimPositions, protected void restoreTabs(@Nullable String zimArticles, @Nullable String zimPositions,
int currentTab) { int currentTab) {
try { try {