Skip to content

Commit 4acf148

Browse files
committed
Merge branch 'master' of https://github.com/femisd/FitPic
2 parents 2c3beb2 + 114e6a8 commit 4acf148

File tree

17 files changed

+842
-200
lines changed

17 files changed

+842
-200
lines changed
Binary file not shown.
15.6 KB
Binary file not shown.

.idea/caches/build_file_checksums.ser

0 Bytes
Binary file not shown.

.idea/caches/gradle_models.ser

3 Bytes
Binary file not shown.

.idea/workspace.xml

Lines changed: 88 additions & 126 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/com/example/offlinemaps/ProfileUI.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ public void selectDrawerItem(MenuItem menuItem) {
176176
*/
177177
private void signIn() {
178178
//Authentication for user to begin using app
179+
179180
firebaseAuth = FirebaseAuth.getInstance();
180181
authStateListener = new FirebaseAuth.AuthStateListener() {
181182
@Override
@@ -197,10 +198,11 @@ public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
197198
Picasso.get().load(image).placeholder(R.drawable.ic_person_white_24dp).into(mProfilePicture);
198199
}
199200
//Username
200-
TextView id = (TextView) findViewById(R.id.tv_profile_user);
201-
id.setText(dataSnapshot.child("mUsername").getValue().toString());
201+
TextView username = (TextView) findViewById(R.id.tv_profile_user);
202+
username.setText(dataSnapshot.child("mUsername").getValue().toString());
202203

203-
id.setOnClickListener(new View.OnClickListener() {
204+
//Launch update username activity.
205+
username.setOnClickListener(new View.OnClickListener() {
204206
@Override
205207
public void onClick(View v) {
206208
Intent update = new Intent(ProfileUI.this, UpdateUsername.class);

0 commit comments

Comments
 (0)