removed fragment list layout, bug fix, fastlane & readme update

This commit is contained in:
nuclearfog 2023-09-20 17:57:01 +02:00
parent bdce4ad09c
commit 5b22305713
No known key found for this signature in database
GPG Key ID: 03488A185C476379
5 changed files with 10 additions and 36 deletions

View File

@ -29,7 +29,6 @@
- <a href="https://github.com/square/okhttp">okhttp</a>
- <a href="https://github.com/square/picasso">picasso</a>
- <a href="https://github.com/google/ExoPlayer">ExoPlayer</a>
- <a href="https://github.com/wasabeef/picasso-transformations">picasso Transformations</a>
- <a href="https://github.com/QuadFlask/colorpicker">QuadFlask colorpicker</a>
- <a href="https://github.com/kyleduo/SwitchButton">SwitchButton</a>
@ -37,7 +36,6 @@
- <a href="https://github.com/nuclearfog/Tagger">Tagger</a>
- <a href="https://github.com/nuclearfog/LinkAndScrollMovement">LinkAndScrollMovement</a>
- <a href="https://github.com/UnifiedPush/android-connector">UnifiedPush connector</a>
- <a href="https://github.com/woltapp/blurhash">blurhash</a>
- <a href="https://jsoup.org">jsoup</a>

View File

@ -185,6 +185,7 @@ public class AppDatabase {
*/
private static final String HOME_QUERY = "SELECT * FROM(" + STATUS_SUBQUERY + ")"
+ " WHERE " + StatusRegisterTable.NAME + "." + StatusRegisterTable.REGISTER + "&" + MASK_STATUS_HOME_TIMELINE + " IS NOT 0"
+ " AND " + UserRegisterTable.NAME + "." + UserRegisterTable.REGISTER + "&" + MASK_USER_FILTERED + " IS 0"
+ " AND " + StatusRegisterTable.NAME + "." + StatusRegisterTable.OWNER + "=?"
+ " AND " + UserRegisterTable.NAME + "." + UserRegisterTable.OWNER + "=?"
+ " ORDER BY " + StatusTable.TIME + " DESC"
@ -1117,10 +1118,10 @@ public class AppDatabase {
}
/**
* remove user from mention results
* remove user from notification results
*
* @param id user ID
* @param mute true remove user status from mention results
* @param mute true remove user notifications
*/
public void muteUser(long id, boolean mute) {
synchronized (LOCK) {

View File

@ -15,7 +15,6 @@ import androidx.recyclerview.widget.RecyclerView.ViewHolder;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout.OnRefreshListener;
import org.nuclearfog.twidda.R;
import org.nuclearfog.twidda.backend.utils.AppStyles;
import org.nuclearfog.twidda.backend.utils.RefreshDelay;
import org.nuclearfog.twidda.backend.utils.RefreshDelay.RefreshCallback;
@ -36,7 +35,7 @@ public abstract class ListFragment extends Fragment implements OnRefreshListener
*/
private static final int REFRESH_DELAY_MS = 1000;
private static final Random rand = new Random();
private static final Random RAND = new Random();
private RecyclerView list;
private SwipeRefreshLayout reload;
@ -44,21 +43,21 @@ public abstract class ListFragment extends Fragment implements OnRefreshListener
private boolean enableSwipe = true;
private boolean isRefreshing = false;
private long sessionId = rand.nextLong();
private long sessionId = RAND.nextLong();
@Override
public final View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup parent, @Nullable Bundle b) {
View view = inflater.inflate(R.layout.fragment_list, parent, false);
list = view.findViewById(R.id.fragment_list_recyclerview);
reload = view.findViewById(R.id.fragment_list_swipe);
list = new RecyclerView(inflater.getContext());
reload = new SwipeRefreshLayout(inflater.getContext());
reload.addView(list);
settings = GlobalSettings.get(requireContext());
list.setLayoutManager(new LinearLayoutManager(requireContext()));
AppStyles.setSwipeRefreshColor(reload, settings);
reload.setOnRefreshListener(this);
return view;
return reload;
}

View File

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingStart="@dimen/fragment_list_layout_padding"
android:paddingEnd="@dimen/fragment_list_layout_padding"
tools:context=".ui.fragments.ListFragment">
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/fragment_list_swipe"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/fragment_list_recyclerview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:overScrollMode="never" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
</LinearLayout>

View File

@ -1 +1 @@
Ein einfacher Mastodon-Client mit Schwerpunkt auf Datenschutz und geringem Datenverbrauch
Einfacher Mastodon-Client fokusiert auf Datenschutz und geringem Verbrauch