mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-18 20:05:53 -04:00
#2241 always clear arguments, even if they are empty. removed delay in inst. test.
This commit is contained in:
parent
970981bafe
commit
1c936a58f2
@ -23,7 +23,6 @@ import android.view.View;
|
||||
import androidx.annotation.StringRes;
|
||||
import androidx.test.rule.ActivityTestRule;
|
||||
import androidx.test.rule.GrantPermissionRule;
|
||||
import com.schibsted.spain.barista.interaction.BaristaSleepInteractions;
|
||||
import org.hamcrest.Matcher;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.junit.Before;
|
||||
@ -40,7 +39,6 @@ import static androidx.test.espresso.matcher.ViewMatchers.withId;
|
||||
import static androidx.test.espresso.matcher.ViewMatchers.withText;
|
||||
import static com.schibsted.spain.barista.assertion.BaristaVisibilityAssertions.assertDisplayed;
|
||||
import static org.hamcrest.Matchers.anyOf;
|
||||
import static org.kiwix.kiwixmobile.testutils.TestUtils.TEST_PAUSE_MS;
|
||||
import static org.kiwix.kiwixmobile.utils.StandardActions.enterSettings;
|
||||
import static org.kiwix.kiwixmobile.utils.StandardActions.openDrawer;
|
||||
|
||||
@ -57,7 +55,6 @@ public class KiwixSettingsFragmentTest {
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
BaristaSleepInteractions.sleep(TEST_PAUSE_MS);
|
||||
openDrawer();
|
||||
enterSettings();
|
||||
}
|
||||
|
@ -91,10 +91,10 @@ class KiwixReaderFragment : CoreReaderFragment() {
|
||||
tryOpeningZimFile(args)
|
||||
}
|
||||
loadUrlWithCurrentWebview(args.pageUrl)
|
||||
requireArguments().clear()
|
||||
} else {
|
||||
manageExternalLaunchAndRestoringViewState(args.zimFileUri)
|
||||
}
|
||||
requireArguments().clear()
|
||||
}
|
||||
|
||||
private fun tryOpeningZimFile(args: KiwixReaderFragmentArgs) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user