Merge branch 'acra-fixes' into 'master'

ACRA fixes

Closes #1074

See merge request !544
This commit is contained in:
Hans-Christoph Steiner 2017-06-26 10:13:54 +00:00
commit 61ab88f8ea
2 changed files with 4 additions and 3 deletions

View File

@ -414,7 +414,8 @@ public class AppDetailsRecyclerViewAdapter
lastUpdateView.setVisibility(View.GONE);
}
if (TextUtils.isEmpty(app.whatsNew)) {
Apk suggestedApk = getSuggestedApk();
if (suggestedApk == null || TextUtils.isEmpty(app.whatsNew)) {
whatsNewView.setVisibility(View.GONE);
} else {
//noinspection deprecation Ignore deprecation because the suggested way is only available in API 24.
@ -422,7 +423,7 @@ public class AppDetailsRecyclerViewAdapter
StringBuilder sbWhatsNew = new StringBuilder();
sbWhatsNew.append(whatsNewView.getContext().getString(R.string.details_new_in_version,
getSuggestedApk().versionName).toUpperCase(locale));
suggestedApk.versionName).toUpperCase(locale));
sbWhatsNew.append("\n\n");
sbWhatsNew.append(app.whatsNew);
whatsNewView.setText(sbWhatsNew);

View File

@ -62,7 +62,7 @@ class CategoriesViewBinder implements LoaderManager.LoaderCallbacks<Cursor> {
}
});
activity.getSupportLoaderManager().initLoader(LOADER_ID, null, this);
activity.getSupportLoaderManager().restartLoader(LOADER_ID, null, this);
}
@Override