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:
M M Arif 2020-11-13 16:04:43 +01:00
parent a170c10e43
commit 240cdf5701
3 changed files with 5 additions and 3 deletions

View File

@ -80,7 +80,7 @@ public class SettingsNotificationsActivity extends BaseActivity {
Toasty.info(appCtx, getResources().getString(R.string.settingsSave)); 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.setView(numberPicker);
builder.create().show(); builder.create().show();
}); });

View File

@ -96,7 +96,7 @@ public class PullRequestsFragment extends Fragment {
adapter = new PullRequestsAdapter(getContext(), prList); adapter = new PullRequestsAdapter(getContext(), prList);
adapter.setLoadMoreListener(() -> recyclerView.post(() -> { adapter.setLoadMoreListener(() -> recyclerView.post(() -> {
if(prList.size() == 10 || pageSize == resultLimit) { if(prList.size() == resultLimit || pageSize == resultLimit) {
int page = (prList.size() + resultLimit) / resultLimit; int page = (prList.size() + resultLimit) / resultLimit;
loadMore(Authorization.get(getContext()), repoOwner, repoName, page, tinyDb.getString("repoPrState"), 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 = new PullRequestsAdapter(context, prList);
adapter.setLoadMoreListener(() -> recyclerView.post(() -> { adapter.setLoadMoreListener(() -> recyclerView.post(() -> {
if(prList.size() == 10 || pageSize == resultLimit) { if(prList.size() == resultLimit || pageSize == resultLimit) {
int page = (prList.size() + resultLimit) / resultLimit; int page = (prList.size() + resultLimit) / resultLimit;
loadMore(Authorization.get(getContext()), repoOwner, repoName, page, tinyDb.getString("repoPrState"), resultLimit); loadMore(Authorization.get(getContext()), repoOwner, repoName, page, tinyDb.getString("repoPrState"), resultLimit);

View File

@ -69,6 +69,8 @@
android:layout_marginTop="15dp" android:layout_marginTop="15dp"
android:textColor="?attr/primaryTextColor" android:textColor="?attr/primaryTextColor"
android:textIsSelectable="true" android:textIsSelectable="true"
android:autoLink="web"
android:textColorLink="@color/lightBlue"
android:textSize="14sp" /> android:textSize="14sp" />
<LinearLayout <LinearLayout