Fix a crash when switching to remote profiles

This commit is contained in:
Thomas 2024-02-02 18:15:42 +01:00
parent c44330d291
commit 227d2ef58b
2 changed files with 4 additions and 3 deletions

View file

@ -2,6 +2,8 @@ package app.fedilab.android.mastodon.client.entities.api;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
/* Copyright 2021 Thomas Schneider
*
* This file is a part of Fedilab
@ -16,7 +18,7 @@ import com.google.gson.annotations.SerializedName;
*
* You should have received a copy of the GNU General Public License along with Fedilab; if not,
* see <http://www.gnu.org/licenses>. */
public class History {
public class History implements Serializable {
@SerializedName("day")
public String day;
@SerializedName("uses")

View file

@ -45,8 +45,7 @@ public class Tag implements Serializable {
for (History h : history) {
try {
weight += Integer.parseInt(h.accounts);
} catch (Exception ignored) {
}
} catch (Exception ignored) {}
}
}
return weight;