1я попытка сохранения новой формы
This commit is contained in:
@ -135,12 +135,12 @@ public class TimeInput extends LinearLayout {
|
||||
{
|
||||
//d = sdf.parse(etH.getText().toString()+":"+etM.getText().toString()+":"+etS.getText().toString());
|
||||
String h = etH.getText().toString();
|
||||
if(h=="") h="00";
|
||||
if(h.equals("")) h="00";
|
||||
|
||||
String m = etM.getText().toString();
|
||||
if(m=="") m="00";
|
||||
if(m.equals("")) m="00";
|
||||
//String s = etS.getText().toString();
|
||||
//if(s=="") s="00";
|
||||
//if(s.equals("")) s="00";
|
||||
|
||||
d = sdf.parse(h+":"+m+":00");
|
||||
} catch (ParseException e) {
|
||||
|
||||
Reference in New Issue
Block a user