Commit 227d2ef5 authored by Thomas's avatar Thomas
Browse files

Fix a crash when switching to remote profiles

parent c44330d2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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")
+1 −2
Original line number Diff line number Diff line
@@ -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;