Skip to content

Commit

Permalink
Merge pull request #4025 from kiwix/Fixes#4024
Browse files Browse the repository at this point in the history
Fixed: `app:theme` is now deprecated. Please move to using `android:theme` instead.
  • Loading branch information
kelson42 authored Oct 10, 2024
2 parents 83899c6 + c2bacd6 commit ff42e9f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ class DownloadRobot : BaseRobot() {
try {
onView(withSubstring(context.getString(string.paused_state))).check(matches(isDisplayed()))
resumeDownload()
} catch (e: AssertionFailedError) {
// do nothing since downloading is In Progress.
} catch (e: RuntimeException) {
// do nothing since downloading is In Progress.
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,15 @@ class DownloadTest : BaseActivityTest() {
stopDownloadIfAlreadyStarted()
downloadZimFile(smallestZimFileIndex)
assertDownloadStart()
pauseDownload()
assertDownloadPaused()
resumeDownload()
assertDownloadResumed()
try {
pauseDownload()
assertDownloadPaused()
resumeDownload()
assertDownloadResumed()
} catch (ignore: Exception) {
// do nothing as ZIM file already downloaded, since we are downloading the smallest file
// so it can be downloaded immediately after starting.
}
waitUntilDownloadComplete()
clickLibraryOnBottomNav()
// refresh the local library list to show the downloaded zim file
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/res/layout/fragment_page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:popupTheme="@style/KiwixTheme"
app:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar"
android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar"
tools:showIn="@layout/fragment_search" />

<androidx.appcompat.widget.SwitchCompat
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/res/layout/layout_scrolling_toolbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
android:layout_width="match_parent"
app:layout_scrollFlags="scroll|enterAlways"
app:popupTheme="@style/KiwixTheme"
app:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar" />
android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar" />

</merge>
2 changes: 1 addition & 1 deletion core/src/main/res/layout/layout_toolbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:popupTheme="@style/KiwixTheme"
app:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar"
android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar"
tools:showIn="@layout/fragment_search">

<androidx.constraintlayout.widget.ConstraintLayout
Expand Down

0 comments on commit ff42e9f

Please sign in to comment.