Someone else's code throwing too many exceptions again, yay
This commit is contained in:
parent
0182763b58
commit
a9ef1f9d47
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -278,7 +278,6 @@ public class HomeTimelineFragment extends StatusListFragment implements ToolbarD
|
|||
});
|
||||
|
||||
if(GithubSelfUpdater.needSelfUpdating()){
|
||||
E.register(this);
|
||||
updateUpdateState(GithubSelfUpdater.getInstance().getState());
|
||||
}
|
||||
if(currentDonationCampaign!=null)
|
||||
|
@ -634,9 +633,6 @@ public class HomeTimelineFragment extends StatusListFragment implements ToolbarD
|
|||
@Override
|
||||
public void onDestroyView(){
|
||||
super.onDestroyView();
|
||||
if(GithubSelfUpdater.needSelfUpdating()){
|
||||
E.unregister(this);
|
||||
}
|
||||
donationBanner=null;
|
||||
donationBannerDismissing=false;
|
||||
}
|
||||
|
|
|
@ -45,9 +45,11 @@ public abstract class WebViewFragment extends LoaderFragment{
|
|||
|
||||
@Override
|
||||
public void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error){
|
||||
if(!loaded){
|
||||
onError(new MastodonErrorResponse(error.getDescription().toString(), -1, null));
|
||||
updateBackCallback();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request){
|
||||
|
|
Loading…
Reference in New Issue