Closed maxrave-dev closed 1 year ago
When you open the activity, can you verify the libs you load contain information?
This is aboutliraries.json but when load is only {"metadata":{"generated":"2023-11-05T15:48:30.735Z"},"libraries":[] }
So it seems something is wrong with the loading logic maybe? (either wrong file loaded or so 🤔 )
The json string you get? is it the one you attached above?
I fixed by using this code
val inputStream = requireContext().resources.openRawResource(R.raw.aboutlibraries)
val scanner = Scanner(inputStream).useDelimiter("\\A")
val stringBuilder = StringBuilder()
while (scanner.hasNextLine()) {
stringBuilder.append(scanner.nextLine())
}
Log.w("AboutLibraries", stringBuilder.toString())
val localLib = Libs.Builder().withJson(stringBuilder.toString()).build()
val intent = LibsBuilder()
.withLicenseShown(true)
.withVersionShown(true)
.withActivityTitle(getString(R.string.third_party_libraries))
.withSearchEnabled(true)
.withEdgeToEdge(true)
.withLibs(
localLib
)
.intent(requireContext())
startActivity(intent)
}
About this issue
Details
Checklist