Skip to content

Commit

Permalink
More crash fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
grishka committed Jun 23, 2024
1 parent 501a271 commit e7094be
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mastodon/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ android {
minSdk 23
targetSdk 33
versionCode 104
versionName "2.5.2"
versionName "2.5.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public void onError(ErrorResponse error){

@Override
public void onDestroy(){
removeBackCallback(exitQueryModeCallback);
super.onDestroy();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ private void loadAutocompleteServers(){
.setCallback(new Callback<>(){
@Override
public void onSuccess(List<CatalogInstance> result){
if(getActivity()==null)
return;
data.clear();
data.addAll(sortInstances(result));
updateFilteredList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ public void onCreate(Bundle savedInstanceState){
setRetainInstance(true);
}

@Override
public void onDestroy(){
removeBackCallback(confirmCallback);
super.onDestroy();
}

@Override
protected void doLoadData(int offset, int count){}

Expand Down

0 comments on commit e7094be

Please sign in to comment.