Skip to content

Commit

Permalink
NClientV2 3.0.1
Browse files Browse the repository at this point in the history
* Bug fixes
  • Loading branch information
Dar9586 committed Mar 23, 2023
1 parent 9e2d2d4 commit 9388c69
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ android {
applicationId "com.dar.nclientv2"
minSdkVersion 14
targetSdkVersion 33
versionCode 300
versionCode 301
multiDexEnabled true
versionName "3.0.0-stable"
versionName "3.0.1-stable"
vectorDrawables.useSupportLibrary true
proguardFiles 'proguard-rules.pro'
}
Expand Down Expand Up @@ -43,7 +43,7 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.fragment:fragment:1.5.5'
implementation 'androidx.fragment:fragment:1.5.6'
implementation 'androidx.preference:preference:1.2.0'
implementation 'androidx.viewpager2:viewpager2:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.3.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ public Response intercept(Chain chain) throws IOException {
(response.code() == HttpURLConnection.HTTP_UNAVAILABLE ||
response.code() == HttpURLConnection.HTTP_FORBIDDEN)
&& (!rec || !MANAGER.endInterceptor())) {

CookieManager.getInstance().removeAllCookie();

CookieInterceptor interceptor = new CookieInterceptor(MANAGER);
interceptor.intercept();
if (context != null) Global.reloadHttpClient(context);
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/com/dar/nclientv2/settings/Global.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@ public class Global {
private static boolean invertFix, buttonChangePage, hideMultitask, enableBeta, volumeOverride, zoomOneColumn, keepHistory, lockScreen, onlyTag, showTitles, removeAvoidedGalleries, useRtl;
private static ThemeScheme theme;
private static DataUsageType usageMobile, usageWifi;
private static String lastVersion, mirror, userAgent;
private static String lastVersion, mirror;
private static int maxHistory, columnCount, maxId, galleryWidth = -1, galleryHeight = -1;
private static int colPortStat, colLandStat, colPortHist, colLandHist, colPortMain, colLandMain, colPortDownload, colLandDownload, colLandFavorite, colPortFavorite;
private static boolean infiniteScrollMain, infiniteScrollFavorite, exactTagMatch;
private static int defaultZoom, offscreenLimit;
private static Point screenSize;
private static String userAgent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:110.0) Gecko/20100101 Firefox/110.0";

public static long recursiveSize(File path) {
if (path.isFile()) return path.length();
Expand Down

0 comments on commit 9388c69

Please sign in to comment.