commit | 63b020ab5bf9050551da579c2fddc3bb0d43128c | [log] [tgz] |
---|---|---|
author | Stella <listella@google.com> | Wed Sep 07 09:40:27 2022 -0700 |
committer | Stella <listella@google.com> | Mon Sep 12 16:34:18 2022 -0700 |
tree | e0817a78c0db19782fa68ca93d6bbe6e7aa29ea0 | |
parent | f43ce54064d75ecbfd5d275755f3259caed7784d [diff] |
Add non-null check for current templateWrapper There are crashes happening that it tries to use last template before calling onGetTemplate the first time, so the last template wrapper being set up. At this time, mTemplateWrapper is null and will cause crash on app. This fix will help prevent the crash. Notice that when this situation happens, instead of using previous template ID (which does not exist yet), it will create a new wrapper with new ID. This will cause the add of step count which may not be added before. Becuase of that, it may cause app to crash when it reaches the step count limit without it being correctly reset. Test: build, add unittest, manual run with showcase app and test bug: b/244327903 Change-Id: I667f33da17cdad330d4b280c55fdce23ed35cfbc
Jetpack is a suite of libraries, tools, and guidance to help developers write high-quality apps easier. These components help you follow best practices, free you from writing boilerplate code, and simplify complex tasks, so you can focus on the code you care about.
Jetpack comprises the androidx.*
package libraries, unbundled from the platform APIs. This means that it offers backward compatibility and is updated more frequently than the Android platform, making sure you always have access to the latest and greatest versions of the Jetpack components.
Our official AARs and JARs binaries are distributed through Google Maven.
You can learn more about using it from Android Jetpack landing page.
For contributions via GitHub, see the GitHub Contribution Guide.
Note: The contributions workflow via GitHub is currently experimental - only contributions to the following projects are being accepted at this time:
When contributing to Jetpack, follow the code review etiquette.
We are not currently accepting new modules.
Head over to the onboarding docs to learn more about getting set up and the development workflow!
Our continuous integration system builds all in progress (and potentially unstable) libraries as new changes are merged. You can manually download these AARs and JARs for your experimentation.
Before uploading your first contribution, you will need setup a password and agree to the contribution agreement:
Generate a HTTPS password: https://android-review.googlesource.com/new-password
Agree to the Google Contributor Licenses Agreement: https://android-review.googlesource.com/settings/new-agreement
AndroidX uses git to store all the binary Gradle dependencies. They are stored in prebuilts/androidx/internal
and prebuilts/androidx/external
directories in your checkout. All the dependencies in these directories are also available from google()
, jcenter()
, or mavenCentral()
. We store copies of these dependencies to have hermetic builds. You can pull in a new dependency using our importMaven tool.