Skip to content

Commit

Permalink
removed fragment list layout, bug fix, fastlane & readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearfog committed Sep 20, 2023
1 parent bdce4ad commit 5b22305
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 36 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@

- <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>
- <a href="https://github.com/nuclearfog/ZoomView">ZoomView</a>
- <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>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -1117,10 +1118,10 @@ public boolean containsLogin(long id) {
}

/**
* 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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
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;
Expand All @@ -36,29 +35,29 @@ 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;
protected GlobalSettings settings;

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;
}


Expand Down
24 changes: 0 additions & 24 deletions app/src/main/res/layout/fragment_list.xml

This file was deleted.

2 changes: 1 addition & 1 deletion fastlane/metadata/android/de/short_description.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Ein einfacher Mastodon-Client mit Schwerpunkt auf Datenschutz und geringem Datenverbrauch
Einfacher Mastodon-Client fokusiert auf Datenschutz und geringem Verbrauch

0 comments on commit 5b22305

Please sign in to comment.