Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public void onCreate(Bundle savedInstanceState) {
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
container.getContext();
View view = inflater.inflate(R.layout.fragment_home, container, false);
progressDialog = new CustomProgressDialog(getContext(), "");
Log.i(TAG, "On View Create");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ protected void onActivityResult(int requestCode, int resultCode, @Nullable Inten

/**
* Handle Facebook Access Token
*
* @param token Facebook Token
*/
private void handleFacebookAccessToken(AccessToken token) {
Expand Down Expand Up @@ -235,11 +236,18 @@ private void handleFacebookAccessToken(AccessToken token) {

/**
* Register Facebook
*
* @param token Access Token
*/
private void registerWithFacebook(AccessToken token) {
UserDTO userDTO = new UserDTO();
userDTO.setEmail(mAuth.getCurrentUser().getEmail());

String userEmail = mAuth.getCurrentUser().getEmail();
if (userEmail == null || userEmail.equals("")) {
userEmail = "Your email";
}

userDTO.setEmail(userEmail);
userDTO.setLastName("");
userDTO.setFirstName(mAuth.getCurrentUser().getDisplayName());
userDTO.setFirebaseId(mAuth.getCurrentUser().getUid());
Expand Down
9 changes: 4 additions & 5 deletions app/src/main/res/layout/fragment_profile_infomation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_weight="0.65"
android:width="0dp"
android:fontFamily="@font/lincol"
android:gravity="center_vertical"
Expand All @@ -184,20 +184,19 @@
android:textSize="13sp" />

<EditText
android:focusable="false"
android:id="@+id/profile_email"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="end"
android:layout_marginEnd="6dp"
android:layout_weight="2"
android:layout_weight="2.35"
android:width="0dp"
android:background="@drawable/table_edittext"
android:hint="Enter your email address"
android:maxLength="30"
android:maxLength="40"
android:singleLine="true"
android:textAlignment="textEnd"
android:textColor="@color/gray_light"
android:textColor="@color/gray_dark"
android:textColorHint="@drawable/table_edittext_hint"
android:textSize="13sp" />
</LinearLayout>
Expand Down