From f56fbf15bcf6cdc676a8e5c05f56040478de1b06 Mon Sep 17 00:00:00 2001 From: yu juehun Date: Tue, 27 Dec 2016 09:50:56 +0800 Subject: [PATCH 1/5] leamonaxN --- app/src/main/java/org/houxg/leamonax/model/User.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/houxg/leamonax/model/User.java b/app/src/main/java/org/houxg/leamonax/model/User.java index 2f3fcf7..f6fff61 100644 --- a/app/src/main/java/org/houxg/leamonax/model/User.java +++ b/app/src/main/java/org/houxg/leamonax/model/User.java @@ -4,6 +4,8 @@ import com.google.gson.annotations.SerializedName; import com.raizlabs.android.dbflow.annotation.Column; +import org.houxg.leamonax.service.AccountService; + public class User extends BaseResponse { @SerializedName("UserId") @@ -35,6 +37,11 @@ public boolean isVerified() { } public String getAvatar() { - return avatar; + Account current = AccountService.getCurrent(); + String host = current.getHost(); + if(host.equals("https://leanote.com")){ + return avatar;} + else + {return host+avatar;} } } From a1fd77b9da4441e3b259dc5c8e0b23fe5a560579 Mon Sep 17 00:00:00 2001 From: houxg Date: Tue, 27 Dec 2016 10:22:09 +0800 Subject: [PATCH 2/5] Revert "leamonaxN" This reverts commit f56fbf15bcf6cdc676a8e5c05f56040478de1b06. --- app/src/main/java/org/houxg/leamonax/model/User.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/src/main/java/org/houxg/leamonax/model/User.java b/app/src/main/java/org/houxg/leamonax/model/User.java index f6fff61..2f3fcf7 100644 --- a/app/src/main/java/org/houxg/leamonax/model/User.java +++ b/app/src/main/java/org/houxg/leamonax/model/User.java @@ -4,8 +4,6 @@ import com.google.gson.annotations.SerializedName; import com.raizlabs.android.dbflow.annotation.Column; -import org.houxg.leamonax.service.AccountService; - public class User extends BaseResponse { @SerializedName("UserId") @@ -37,11 +35,6 @@ public boolean isVerified() { } public String getAvatar() { - Account current = AccountService.getCurrent(); - String host = current.getHost(); - if(host.equals("https://leanote.com")){ - return avatar;} - else - {return host+avatar;} + return avatar; } } From 1cbf343b570bb796a132643314b0c217cb67a762 Mon Sep 17 00:00:00 2001 From: houxg Date: Wed, 28 Dec 2016 17:51:27 +0800 Subject: [PATCH 3/5] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 10e6998..ad45641 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,9 @@ This is a third party Android client for Leanote. ![RichText](https://raw.githubusercontent.com/houxg/Leamonax/develop/screenshot/RichText.png) ![Markdown](https://raw.githubusercontent.com/houxg/Leamonax/develop/screenshot/Markdown.png) -# Install +# Download [Git Release](https://github.com/houxg/Leamonax/releases/latest) +[Pgyer](https://www.pgyer.com/5pZe) # Features - [x] Sign in/up From 895287b689e5ee427dc943f0a2f91034af68429c Mon Sep 17 00:00:00 2001 From: houxg Date: Wed, 28 Dec 2016 17:52:04 +0800 Subject: [PATCH 4/5] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ad45641..5facfda 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ This is a third party Android client for Leanote. ![Markdown](https://raw.githubusercontent.com/houxg/Leamonax/develop/screenshot/Markdown.png) # Download -[Git Release](https://github.com/houxg/Leamonax/releases/latest) -[Pgyer](https://www.pgyer.com/5pZe) +- [Git Release](https://github.com/houxg/Leamonax/releases/latest) +- [Pgyer](https://www.pgyer.com/5pZe) # Features - [x] Sign in/up From f58d0d88b6d52470318428652d2110b24e5bfbf6 Mon Sep 17 00:00:00 2001 From: houxg Date: Wed, 28 Dec 2016 18:00:45 +0800 Subject: [PATCH 5/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5facfda..83d9e92 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This is a third party Android client for Leanote. # Download - [Git Release](https://github.com/houxg/Leamonax/releases/latest) -- [Pgyer](https://www.pgyer.com/5pZe) +- [Pgyer](https://www.pgyer.com/leamonax) # Features - [x] Sign in/up