diff --git a/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/SettingsFragment.java b/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/SettingsFragment.java index 3946a47..7e00c67 100644 --- a/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/SettingsFragment.java +++ b/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/SettingsFragment.java @@ -122,7 +122,8 @@ public class SettingsFragment extends Fragment implements View.OnClickListener, break; case R.id.btn_save: - user.updateUser(parent); + if(txt_password.getText().length() > 3 && txt_email.getText().length() > 0) user.updateUser(parent); + else Toast.makeText(parent, "Password should be more than 4 chars long, valid email", Toast.LENGTH_LONG).show(); break; } } diff --git a/app/src/main/res/layout/note_view_full.xml b/app/src/main/res/layout/note_view_full.xml index f2d9954..c160659 100644 --- a/app/src/main/res/layout/note_view_full.xml +++ b/app/src/main/res/layout/note_view_full.xml @@ -12,7 +12,7 @@ android:layout_height="wrap_content"> @@ -87,7 +87,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/note_me" - android:layout_margin="15dp" + android:layout_margin="5dp" android:drawableLeft="@android:drawable/ic_menu_send" android:background="@color/colorPrimary" android:textColor="#ffffff" @@ -99,8 +99,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/throw_me" - android:layout_marginTop="15dp" - android:drawableLeft="@android:drawable/ic_menu_delete" /> + android:drawableLeft="@android:drawable/ic_menu_delete" + android:layout_margin="5dp" /> @@ -108,4 +108,4 @@ - \ No newline at end of file +