mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-03 02:41:40 +00:00
Fix a bunch of potential memory leaks
This commit is contained in:
parent
c025aee039
commit
9c661bd283
6 changed files with 34 additions and 18 deletions
|
|
@ -65,6 +65,7 @@ public class MainActivity extends BaseActivity {
|
|||
protected void onDestroy() {
|
||||
super.onDestroy();
|
||||
connectivityStatusReceiverManager(false);
|
||||
bind = null;
|
||||
}
|
||||
|
||||
public void init() {
|
||||
|
|
@ -186,7 +187,7 @@ public class MainActivity extends BaseActivity {
|
|||
|
||||
if (Objects.requireNonNull(navController.getCurrentDestination()).getId() == R.id.landingFragment) {
|
||||
navController.navigate(R.id.action_landingFragment_to_loginFragment);
|
||||
} else if(Objects.requireNonNull(navController.getCurrentDestination()).getId() == R.id.settingsFragment) {
|
||||
} else if (Objects.requireNonNull(navController.getCurrentDestination()).getId() == R.id.settingsFragment) {
|
||||
navController.navigate(R.id.action_settingsFragment_to_loginFragment);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue