Merge "Remove ImsConfigTracker#onBindInput precondition" into tm-dev

This commit is contained in:
Taran Singh
2022-03-09 20:35:22 +00:00
committed by Android (Google) Code Review

View File

@@ -63,8 +63,9 @@ public final class ImsConfigurationTracker {
*/
@MainThread
public void onBindInput(@Nullable Resources resources) {
Preconditions.checkState(mInitialized,
"onBindInput can be called only after onInitialize().");
if (!mInitialized) {
return;
}
if (mLastKnownConfig == null && resources != null) {
mLastKnownConfig = new Configuration(resources.getConfiguration());
}