Paul profile #6

Merged
11306084 merged 29 commits from paul-profile into master 2017-06-22 11:39:39 +02:00
2 changed files with 6 additions and 5 deletions
Showing only changes of commit e787204ce7 - Show all commits

View File

@@ -5,6 +5,7 @@ import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.app.Fragment;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@@ -79,10 +80,10 @@ public class ProfileFragment extends Fragment implements View.OnClickListener{
}
FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
if (user != null) {
httpsReference = FirebaseStorage.getInstance().getReferenceFromUrl(user.getPhotoUrl().toString());
}
}
if (user != null && user.getPhotoUrl() != null) {
httpsReference = FirebaseStorage.getInstance().getReferenceFromUrl(user.getPhotoUrl().toString());
}
}
/**
* Assigns all views.

View File

@@ -15,7 +15,7 @@
android:orientation="vertical">
<TextView
android:id="@+id/profile-name"
android:id="@+id/profile_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"