This commit is contained in:
LoveSy 2022-01-28 20:55:35 +08:00 committed by GitHub
parent f02712ce5c
commit 998baed2aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 11 deletions

View File

@ -216,7 +216,9 @@ public class RepoFragment extends BaseFragment implements RepoLoader.RepoListene
@Override
public void onRepoLoaded() {
if (adapter != null) {
adapter.refresh();
}
updateRepoSummary();
}

View File

@ -228,7 +228,9 @@ public class RepoItemFragment extends BaseFragment implements RepoLoader.RepoLis
@Override
public void onModuleReleasesLoaded(OnlineModule module) {
this.module = module;
if (releaseAdapter != null) {
runAsync(releaseAdapter::loadItems);
}
if (module.getReleases().size() == 1) {
showHint(R.string.module_release_no_more, true);
}
@ -236,7 +238,9 @@ public class RepoItemFragment extends BaseFragment implements RepoLoader.RepoLis
@Override
public void onThrowable(Throwable t) {
if (releaseAdapter != null) {
runAsync(releaseAdapter::loadItems);
}
showHint(getString(R.string.repo_load_failed, t.getLocalizedMessage()), true);
}

View File

@ -60,14 +60,6 @@
<item name="allowDividerBelow">false</item>
</style>
<style name="PreferenceCategoryTitleTextStyle" tools:override="true">
<item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textAllCaps">true</item>
<item name="android:textSize">11sp</item>
<!-- 0.8 Spacing, 0.8/11 = 0.072727273 -->
<item name="android:letterSpacing">0.072727273</item>
</style>
<!-- Base themes -->
<style name="Base.Light" parent="Theme.Material3.Light" tools:override="true">
<item name="android:statusBarColor">?android:colorBackground</item>