mirror of
https://codeberg.org/gitnex/GitNex.git
synced 2024-12-16 15:48:13 +08:00
Fix pr pagination (#770)
links improvement Fix button alignment in polling delay popup Fix pr pagination Co-authored-by: M M Arif <mmarif@swatian.com> Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/770
This commit is contained in:
parent
a170c10e43
commit
240cdf5701
@ -80,7 +80,7 @@ public class SettingsNotificationsActivity extends BaseActivity {
|
||||
Toasty.info(appCtx, getResources().getString(R.string.settingsSave));
|
||||
});
|
||||
|
||||
builder.setNegativeButton(R.string.cancelButton, (dialog, which) -> dialog.dismiss());
|
||||
builder.setNeutralButton(R.string.cancelButton, (dialog, which) -> dialog.dismiss());
|
||||
builder.setView(numberPicker);
|
||||
builder.create().show();
|
||||
});
|
||||
|
@ -96,7 +96,7 @@ public class PullRequestsFragment extends Fragment {
|
||||
adapter = new PullRequestsAdapter(getContext(), prList);
|
||||
adapter.setLoadMoreListener(() -> recyclerView.post(() -> {
|
||||
|
||||
if(prList.size() == 10 || pageSize == resultLimit) {
|
||||
if(prList.size() == resultLimit || pageSize == resultLimit) {
|
||||
|
||||
int page = (prList.size() + resultLimit) / resultLimit;
|
||||
loadMore(Authorization.get(getContext()), repoOwner, repoName, page, tinyDb.getString("repoPrState"), resultLimit);
|
||||
@ -125,7 +125,7 @@ public class PullRequestsFragment extends Fragment {
|
||||
adapter = new PullRequestsAdapter(context, prList);
|
||||
adapter.setLoadMoreListener(() -> recyclerView.post(() -> {
|
||||
|
||||
if(prList.size() == 10 || pageSize == resultLimit) {
|
||||
if(prList.size() == resultLimit || pageSize == resultLimit) {
|
||||
|
||||
int page = (prList.size() + resultLimit) / resultLimit;
|
||||
loadMore(Authorization.get(getContext()), repoOwner, repoName, page, tinyDb.getString("repoPrState"), resultLimit);
|
||||
|
@ -69,6 +69,8 @@
|
||||
android:layout_marginTop="15dp"
|
||||
android:textColor="?attr/primaryTextColor"
|
||||
android:textIsSelectable="true"
|
||||
android:autoLink="web"
|
||||
android:textColorLink="@color/lightBlue"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<LinearLayout
|
||||
|
Loading…
Reference in New Issue
Block a user