File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
core/src/main/java/org/kiwix/kiwixmobile/core/main/reader
custom/src/androidTest/java/org/kiwix/kiwixmobile/custom/search Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ Kiwix requires the following permissions to fully work:
80
80
81
81
## Build instructions
82
82
1 . Clone [ this repository] ( https://github.com/kiwix/kiwix-android ) .
83
- 2 . Import the project with [ Android Studio Narwhal Canary build ] ( https://developer.android.com/studio/preview ) .
83
+ 2 . Import the project with [ Android Studio] ( https://developer.android.com/studio ) .
84
84
3 . Set the Gradle JDK to Java 17.
85
85
4 . Run ./gradlew build from the root directory.
86
86
Original file line number Diff line number Diff line change @@ -2232,10 +2232,6 @@ abstract class CoreReaderFragment :
2232
2232
private fun saveTabStates (onComplete : () -> Unit = {}) {
2233
2233
CoroutineScope (Dispatchers .Main ).launch {
2234
2234
savingTabsMutex.withLock {
2235
- // clear the previous history saved in database
2236
- withContext(Dispatchers .IO ) {
2237
- repositoryActions?.clearWebViewPageHistory()
2238
- }
2239
2235
val coreApp = sharedPreferenceUtil?.context as CoreApp
2240
2236
val settings = coreApp.getSharedPreferences(
2241
2237
SharedPreferenceUtil .PREF_KIWIX_MOBILE ,
@@ -2247,6 +2243,9 @@ abstract class CoreReaderFragment :
2247
2243
getWebViewHistoryEntity(view, index)?.let (webViewHistoryEntityList::add)
2248
2244
}
2249
2245
withContext(Dispatchers .IO ) {
2246
+ // clear the previous history saved in database
2247
+ repositoryActions?.clearWebViewPageHistory()
2248
+ // Store new history in database.
2250
2249
repositoryActions?.saveWebViewPageHistory(webViewHistoryEntityList)
2251
2250
}
2252
2251
settings.edit {
Original file line number Diff line number Diff line change @@ -299,7 +299,9 @@ class SearchFragmentTestForCustomApp {
299
299
clickOnHomeButton(composeTestRule)
300
300
// click on an article to load the other page.
301
301
clickOnAFoolForYouArticle(composeTestRule)
302
+ composeTestRule.mainClock.advanceTimeByFrame()
302
303
assertAFoolForYouArticleLoaded(composeTestRule)
304
+ composeTestRule.waitUntilTimeout()
303
305
// open note screen.
304
306
openNoteFragment(customMainActivity as CoreMainActivity , composeTestRule)
305
307
composeTestRule.waitUntilTimeout()
You can’t perform that action at this time.
0 commit comments