forked from readium/kotlin-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash when restoring the fragment hierarchy after process death (r…
- Loading branch information
1 parent
f87dd95
commit 8bf59ed
Showing
16 changed files
with
1,184 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
readium/navigator/src/main/java/org/readium/r2/navigator/DummyPublication.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.readium.r2.navigator | ||
|
||
import org.readium.r2.shared.publication.LocalizedString | ||
import org.readium.r2.shared.publication.Manifest | ||
import org.readium.r2.shared.publication.Metadata | ||
import org.readium.r2.shared.publication.Publication | ||
|
||
object RestorationNotSupportedException : Exception( | ||
"Restoration of the navigator fragment after process death is not supported. You must pop it from the back stack or finish the host Activity before `onResume`." | ||
) | ||
|
||
internal val dummyPublication = Publication( | ||
Manifest( | ||
metadata = Metadata( | ||
identifier = "readium:dummy", | ||
localizedTitle = LocalizedString("") | ||
) | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.