Как исправить: переменная installStateUpdatedListener могла не быть инициализирована ⇐ JAVA
-
Anonymous
Как исправить: переменная installStateUpdatedListener могла не быть инициализирована
Variable 'installStateUpdatedListener' might not have been initialized
How to solve this problem
image
.InstallStateUpdatedListener not working `
InstallStateUpdatedListener installStateUpdatedListener; InstallStateUpdatedListener finalInstallStateUpdatedListener = installStateUpdatedListener; installStateUpdatedListener = state -> { if (state.installStatus() == InstallStatus.DOWNLOADED) { launchSnackBar(); } else if (state.installStatus() == InstallStatus.INSTALLED){ if (appUpdateManager != null){ appUpdateManager.unregisterListener(finalInstallStateUpdatedListener); } } ` How to fix Variable 'installStateUpdatedListener' might not have been initialized
Источник: https://stackoverflow.com/questions/780 ... initialize
Variable 'installStateUpdatedListener' might not have been initialized
How to solve this problem
image
.InstallStateUpdatedListener not working `
InstallStateUpdatedListener installStateUpdatedListener; InstallStateUpdatedListener finalInstallStateUpdatedListener = installStateUpdatedListener; installStateUpdatedListener = state -> { if (state.installStatus() == InstallStatus.DOWNLOADED) { launchSnackBar(); } else if (state.installStatus() == InstallStatus.INSTALLED){ if (appUpdateManager != null){ appUpdateManager.unregisterListener(finalInstallStateUpdatedListener); } } ` How to fix Variable 'installStateUpdatedListener' might not have been initialized
Источник: https://stackoverflow.com/questions/780 ... initialize
Мобильная версия