From ba65237b154bca7cdc676a9147b0a78c6a850cb7 Mon Sep 17 00:00:00 2001 From: panqihua <1029559041@qq.com> Date: Fri, 15 May 2020 08:46:00 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'app/src/main/java/com/com?= =?UTF-8?q?munity/pocket/ui/main/ui/info/InfoFragment.java'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 临时改动 --- .../com/community/pocket/ui/main/ui/info/InfoFragment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/community/pocket/ui/main/ui/info/InfoFragment.java b/app/src/main/java/com/community/pocket/ui/main/ui/info/InfoFragment.java index b152a89..4d8e4d4 100644 --- a/app/src/main/java/com/community/pocket/ui/main/ui/info/InfoFragment.java +++ b/app/src/main/java/com/community/pocket/ui/main/ui/info/InfoFragment.java @@ -630,6 +630,9 @@ public class InfoFragment extends BaseFragment { @Override public String getFormattedValue(float value) { int index = (int) (value - 1); + if(index<0){ + return ''; + } return formatUnix(values.get(index).getTime()); } });