e 6 lat temu
rodzic
commit
f533a00d72

+ 3 - 2
app/src/main/java/com/kuxuan/moneynote/ui/weight/CaculatorLayout.java

@@ -284,11 +284,12 @@ public class CaculatorLayout extends LinearLayout implements View.OnClickListene
284 284
 
285 285
                 }else {
286 286
 
287
-                    String sumStr = mNumText.getText().toString().trim();
287
+                    String sumStr = shownumtext;
288 288
                     double sumDouble = Double.parseDouble(sumStr);
289
-                    if(sumDouble==0){
289
+                    if(sumDouble<=0){
290 290
                         return;
291 291
                     }
292
+
292 293
                     sum.complete();
293 294
 
294 295
                 }