Skip to content

Commit

Permalink
[robotv-atv] RecordingsFragment: small setup fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pipelka committed Dec 29, 2020
1 parent 724290a commit 595cb3a
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ public void onCreate(Bundle savedInstanceState) {
prepareEntranceTransition();
notification = new NotificationHandler(getActivity());

// missing setup -> start setup activity
if(TextUtils.isEmpty(SetupUtils.getServer(getActivity()))) {
startSetupActivity();
return;
}

ProgressBarManager manager = getProgressBarManager();
manager.enableProgressBar();
manager.show();
Expand Down Expand Up @@ -185,7 +179,10 @@ public void onStop() {

@Override
public void onDestroy() {
backgroundManager.release();
if(backgroundManager != null) {
backgroundManager.release();
}

super.onDestroy();
}

Expand Down Expand Up @@ -283,7 +280,6 @@ public MovieCollectionAdapter createAdapter() {
@Override
public void onConnectionError(DataService service) {
Log.d(TAG, "onConnectionError");
loadingAdapter = null;
startSetupActivity();
}

Expand Down

0 comments on commit 595cb3a

Please sign in to comment.