Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit b6ce2a6

Browse files
Fix: certificate change
Also (hopefully) better handling for user captchas Signed-off-by: androidacy-user <opensource@androidacy.com>
1 parent e3a7420 commit b6ce2a6

File tree

5 files changed

+78
-99
lines changed

5 files changed

+78
-99
lines changed

app/src/main/java/com/fox2code/mmm/MainApplication.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
import com.fox2code.rosettax.LanguageSwitcher;
3030
import com.topjohnwu.superuser.Shell;
3131

32-
import java.io.IOException;
33-
import java.io.Writer;
3432
import java.text.SimpleDateFormat;
3533
import java.util.Date;
3634
import java.util.Locale;
@@ -206,6 +204,10 @@ public static String formatTime(long timeStamp) {
206204
private FoxThemeWrapper markwonThemeContext;
207205
private Markwon markwon;
208206

207+
public static MainApplication getInstance() {
208+
return INSTANCE;
209+
}
210+
209211
public Markwon getMarkwon() {
210212
if (this.markwon != null)
211213
return this.markwon;

app/src/main/java/com/fox2code/mmm/androidacy/AndroidacyRepoData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ protected boolean prepare() {
103103
} catch (Exception e) {
104104
Log.e(TAG, "Failed to ping server", e);
105105
// Inform user
106-
Toast.makeText(MainApplication.getINSTANCE(), R.string.androidacy_server_down, Toast.LENGTH_LONG).show();
106+
new Thread(() -> Toast.makeText(MainApplication.getINSTANCE(), R.string.androidacy_server_down, Toast.LENGTH_LONG).show()).start();
107107
return false;
108108
}
109109
long time = System.currentTimeMillis();

0 commit comments

Comments
 (0)