Fix a crash when switching to remote profiles

fix_513
Thomas 9 months ago
parent c44330d291
commit 227d2ef58b

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

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

Loading…
Cancel
Save