mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Stop leaking Service Connections!
This commit is contained in:
parent
640a1da961
commit
5396541f4e
2 changed files with 12 additions and 0 deletions
|
|
@ -188,6 +188,11 @@ public class ShareActivity extends AuthenticatedActivity {
|
|||
super.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
unbindService(uploadServiceConnection);
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
|
|
|
|||
|
|
@ -131,6 +131,13 @@ public class ContributionsActivity extends AuthenticatedActivity implements Load
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
unbindService(uploadServiceConnection);
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
private GridView contributionsList;
|
||||
|
||||
private ContributionAdapter contributionsAdapter;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue