mirror of https://codeberg.org/gitnex/GitNex.git
This is bizarre!!
This commit is contained in:
parent
76863d2602
commit
2a15060621
|
@ -139,6 +139,17 @@ public class RepoDetailActivity extends BaseActivity implements BottomSheetListe
|
|||
|
||||
checkRepositoryStarStatus(repository.getOwner(), repository.getName());
|
||||
checkRepositoryWatchStatus(repository.getOwner(), repository.getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
repository.checkAccountSwitch(this);
|
||||
if(updateRepo) {
|
||||
updateRepo = false;
|
||||
repository.removeRepository();
|
||||
getRepoInfo(repository.getOwner(), repository.getName());
|
||||
}
|
||||
} private final ActivityResultLauncher<Intent> createReleaseLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> {
|
||||
if(result.getResultCode() == 201) {
|
||||
assert result.getData() != null;
|
||||
|
@ -152,17 +163,6 @@ public class RepoDetailActivity extends BaseActivity implements BottomSheetListe
|
|||
}
|
||||
});
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
repository.checkAccountSwitch(this);
|
||||
if(updateRepo) {
|
||||
updateRepo = false;
|
||||
repository.removeRepository();
|
||||
getRepoInfo(repository.getOwner(), repository.getName());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(@NonNull Menu menu) {
|
||||
|
||||
|
@ -881,4 +881,5 @@ public class RepoDetailActivity extends BaseActivity implements BottomSheetListe
|
|||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue