changed max chars in note default to 200

This commit is contained in:
Aran Zaiger 2016-07-12 21:50:48 +03:00
parent ffe73a159e
commit cf405e21e3

View file

@ -44,6 +44,7 @@ import java.util.List;
* to handle interaction events. * to handle interaction events.
*/ */
public class PersonalFragment extends Fragment { public class PersonalFragment extends Fragment {
private static final int MAX_CHARS_IN_BODY = 200;
protected ListView noteList; protected ListView noteList;
private final String BASE_URL = "http://thesocialnotework-api.appspot.com/api"; private final String BASE_URL = "http://thesocialnotework-api.appspot.com/api";
private GPSUtils gpsUtils; private GPSUtils gpsUtils;
@ -225,8 +226,8 @@ public class PersonalFragment extends Fragment {
} }
//title too long //title too long
if (newTitle.getText().length() > 20) { if (newTitle.getText().length() > MAX_CHARS_IN_BODY) {
Toast toast = Toast.makeText(getActivity(), "Title too long.\n Use up to 20 notes.", Toast.LENGTH_LONG); Toast toast = Toast.makeText(getActivity(), "Title too long.\n Use up to 200 notes.", Toast.LENGTH_LONG);
toast.show(); toast.show();
return; return;
} }