mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-21 07:18:05 -04:00
gold Classic
This commit is contained in:
@@ -126,7 +126,7 @@ class WhatsNewViewBinder implements LoaderManager.LoaderCallbacks<Cursor> {
|
||||
activity,
|
||||
AppProvider.getRecentlyUpdatedUri(),
|
||||
AppMetadataTable.Cols.ALL,
|
||||
selection,
|
||||
null,//selection,
|
||||
null,
|
||||
null
|
||||
);
|
||||
|
||||
@@ -62,7 +62,7 @@ public class WhatsNewAdapter extends RecyclerView.Adapter<AppCardController> {
|
||||
|
||||
@Override
|
||||
public int getItemViewType(int position) {
|
||||
int relativePositionInCycle = position % 5;
|
||||
int relativePositionInCycle = 0;//position % 5;
|
||||
|
||||
if (BuildConfig.FLAVOR.startsWith("basic")) {
|
||||
if (relativePositionInCycle > 0) {
|
||||
@@ -115,7 +115,7 @@ public class WhatsNewAdapter extends RecyclerView.Adapter<AppCardController> {
|
||||
public static class SpanSizeLookup extends GridLayoutManager.SpanSizeLookup {
|
||||
@Override
|
||||
public int getSpanSize(int position) {
|
||||
int relativePositionInCycle = position % 5;
|
||||
int relativePositionInCycle =0;// position % 5;
|
||||
if (relativePositionInCycle == 0) {
|
||||
return 2;
|
||||
} else {
|
||||
@@ -145,7 +145,7 @@ public class WhatsNewAdapter extends RecyclerView.Adapter<AppCardController> {
|
||||
int horizontalPadding = (int) resources.getDimension(R.dimen.whats_new__padding__app_card__horizontal);
|
||||
int verticalPadding = (int) resources.getDimension(R.dimen.whats_new__padding__app_card__vertical);
|
||||
|
||||
int relativePositionInCycle = position % 5;
|
||||
int relativePositionInCycle = 0;//position % 5;
|
||||
if (relativePositionInCycle != 0) {
|
||||
// The item on the left will have both left and right padding. The item on the right
|
||||
// will only have padding on the right. This will allow the same amount of padding
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/summary"
|
||||
android:maxLines="4"
|
||||
android:textSize="13sp"
|
||||
android:ellipsize="end"
|
||||
android:layout_marginLeft="8dp"
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/summary"
|
||||
android:maxLines="4"
|
||||
android:textSize="14sp"
|
||||
android:ellipsize="end"
|
||||
app:layout_constraintTop_toBottomOf="@+id/icon"
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/summary"
|
||||
android:lines="2"
|
||||
android:textSize="14sp"
|
||||
android:ellipsize="end"
|
||||
android:layout_marginLeft="16dp"
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/summary"
|
||||
android:maxLines="3"
|
||||
android:ellipsize="end"
|
||||
app:layout_constraintTop_toBottomOf="@+id/icon"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
|
||||
Reference in New Issue
Block a user