mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 08:40:03 +02:00
Fix a crash when switching to remote profiles
This commit is contained in:
parent
c44330d291
commit
227d2ef58b
2 changed files with 4 additions and 3 deletions
|
@ -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…
Reference in a new issue