Fix mystery NPE

This commit is contained in:
luvletter2333 2021-09-20 20:53:27 +08:00
parent 2b1309bb69
commit c063ee58b5
No known key found for this signature in database
GPG Key ID: BFD68B892BECC1D8

View File

@ -731,7 +731,7 @@ public class ThemeActivity extends BaseFragment implements NotificationCenter.No
} else if (id == NotificationCenter.themeUploadError) {
Theme.ThemeInfo themeInfo = (Theme.ThemeInfo) args[0];
Theme.ThemeAccent accent = (Theme.ThemeAccent) args[1];
if (themeInfo == sharingTheme && accent == sharingAccent && sharingProgressDialog == null) {
if (themeInfo == sharingTheme && accent == sharingAccent && sharingProgressDialog != null) {
sharingProgressDialog.dismiss();
}
} else if (id == NotificationCenter.needShareTheme) {