changed max chars in note default to 200
This commit is contained in:
parent
ffe73a159e
commit
cf405e21e3
1 changed files with 3 additions and 2 deletions
|
@ -44,6 +44,7 @@ import java.util.List;
|
|||
* to handle interaction events.
|
||||
*/
|
||||
public class PersonalFragment extends Fragment {
|
||||
private static final int MAX_CHARS_IN_BODY = 200;
|
||||
protected ListView noteList;
|
||||
private final String BASE_URL = "http://thesocialnotework-api.appspot.com/api";
|
||||
private GPSUtils gpsUtils;
|
||||
|
@ -225,8 +226,8 @@ public class PersonalFragment extends Fragment {
|
|||
}
|
||||
|
||||
//title too long
|
||||
if (newTitle.getText().length() > 20) {
|
||||
Toast toast = Toast.makeText(getActivity(), "Title too long.\n Use up to 20 notes.", Toast.LENGTH_LONG);
|
||||
if (newTitle.getText().length() > MAX_CHARS_IN_BODY) {
|
||||
Toast toast = Toast.makeText(getActivity(), "Title too long.\n Use up to 200 notes.", Toast.LENGTH_LONG);
|
||||
toast.show();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue