Created
December 5, 2019 07:41
-
-
Save ecomaikgolf/de6227aa72b35add477b87f85c9c00ab to your computer and use it in GitHub Desktop.
Onelio/ConnectU App crash patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 0cad52ca611a23060781870742696069168173d8 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Ernesto=20Mart=C3=ADnez=20Garc=C3=ADa?= | |
<[email protected]> | |
Date: Mon, 25 Nov 2019 12:39:09 +0100 | |
Subject: [PATCH] [BUGFIX] Crash due to empty path in image | |
--- | |
app/src/main/java/com/onelio/connectu/API/LoginRequest.java | 5 ++--- | |
1 file changed, 2 insertions(+), 3 deletions(-) | |
diff --git a/app/src/main/java/com/onelio/connectu/API/LoginRequest.java b/app/src/main/java/com/onelio/connectu/API/LoginRequest.java | |
index bebbff3..30371ee 100644 | |
--- a/app/src/main/java/com/onelio/connectu/API/LoginRequest.java | |
+++ b/app/src/main/java/com/onelio/connectu/API/LoginRequest.java | |
@@ -161,9 +161,8 @@ public void onNavigationComplete(boolean isSuccessful, String body) { | |
saveLoginData(); // Save date & version of actual login | |
app.account.Email = user; | |
app.account.Password = pass; | |
- app.account.Name = doc.select("a.dropdown-toggle > span[id=nombre]").text(); | |
- app.account.PictureURL = | |
- doc.select("a.dropdown-toggle > span[id=retrato] > img").attr("src"); | |
+ app.account.Name = doc.getElementById("usunombre").text(); | |
+ app.account.PictureURL = doc.getElementById("usufoto").children().attr("src"); | |
HomeRequest notificationsLoader = new HomeRequest(context); | |
notificationsLoader.parseAlertsFromBody(body); | |
} else { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment