Skip to content

Commit

Permalink
Someone else's code throwing too many exceptions again, yay
Browse files Browse the repository at this point in the history
  • Loading branch information
grishka committed Jul 9, 2024
1 parent 0182763 commit a9ef1f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion mastodon/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ android {
applicationId "org.joinmastodon.android"
minSdk 23
targetSdk 34
versionCode 110
versionCode 111
versionName "2.6.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy){
});

if(GithubSelfUpdater.needSelfUpdating()){
E.register(this);
updateUpdateState(GithubSelfUpdater.getInstance().getState());
}
if(currentDonationCampaign!=null)
Expand Down Expand Up @@ -634,9 +633,6 @@ public void onError(ErrorResponse error){}
@Override
public void onDestroyView(){
super.onDestroyView();
if(GithubSelfUpdater.needSelfUpdating()){
E.unregister(this);
}
donationBanner=null;
donationBannerDismissing=false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ public void onPageFinished(WebView view, String url){

@Override
public void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error){
onError(new MastodonErrorResponse(error.getDescription().toString(), -1, null));
updateBackCallback();
if(!loaded){
onError(new MastodonErrorResponse(error.getDescription().toString(), -1, null));
updateBackCallback();
}
}

@Override
Expand Down

0 comments on commit a9ef1f9

Please sign in to comment.