mirror of
https://github.com/k0shk0sh/FastHub.git
synced 2025-12-08 19:05:54 +00:00
fix #1575
This commit is contained in:
parent
df7c5caf04
commit
d688d562f7
8
app/proguard-rules.pro
vendored
8
app/proguard-rules.pro
vendored
@ -78,6 +78,8 @@
|
||||
public *;
|
||||
}
|
||||
|
||||
-keep class com.google.android.gms.** { *; }
|
||||
|
||||
-dontwarn com.github.b3er.**
|
||||
-dontwarn com.memoizrlabs.**
|
||||
-dontwarn java.lang.FunctionalInterface
|
||||
@ -131,4 +133,8 @@
|
||||
-dontwarn com.octo.android.robospice.retrofit.RetrofitJackson**
|
||||
-dontwarn retrofit.appengine.UrlFetchClient
|
||||
-dontwarn icepick.**
|
||||
-dontwarn com.fastaccess.ui.modules.repos.**
|
||||
-dontwarn com.fastaccess.ui.modules.repos.**
|
||||
-dontwarn org.apache.xerces.parsers.**
|
||||
-dontwarn oracle.xml.**
|
||||
-dontwarn org.jdom.**
|
||||
-dontwarn okhttp3.internal.**
|
||||
@ -32,7 +32,7 @@ import static com.fastaccess.data.dao.model.PinnedGists.LOGIN;
|
||||
@io.requery.Nullable long gistId;
|
||||
|
||||
public static void pinUpin(@NonNull Gist gist) {
|
||||
PinnedGists pinnedIssues = get(gist.getId());
|
||||
PinnedGists pinnedIssues = get(gist.getGistId().hashCode());
|
||||
if (pinnedIssues == null) {
|
||||
PinnedGists pinned = new PinnedGists();
|
||||
pinned.setLogin(Login.getUser().getLogin());
|
||||
@ -42,7 +42,7 @@ import static com.fastaccess.data.dao.model.PinnedGists.LOGIN;
|
||||
App.getInstance().getDataStore().toBlocking().insert(pinned);
|
||||
} catch (Exception ignored) {}
|
||||
} else {
|
||||
delete(gist.getId());
|
||||
delete(gist.getGistId().hashCode());
|
||||
}
|
||||
}
|
||||
|
||||
@ -73,5 +73,4 @@ import static com.fastaccess.data.dao.model.PinnedGists.LOGIN;
|
||||
public static boolean isPinned(long gistId) {
|
||||
return get(gistId) != null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ buildscript {
|
||||
maven { url 'https://maven.fabric.io/public' }
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.2.0-alpha04'
|
||||
classpath 'com.android.tools.build:gradle:3.2.0-alpha06'
|
||||
classpath 'com.google.gms:google-services:3.0.0'
|
||||
classpath 'com.novoda:gradle-build-properties-plugin:0.3'
|
||||
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.2'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user