Skip to content

Commit

Permalink
fix empty screen after onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
newhinton committed Aug 27, 2023
1 parent 2571b22 commit 2564fd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,6 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
}
} else if (requestCode == ONBOARDING_REQUEST) {
startRemotesFragment();
RefreshLocalAliases refresh = new RefreshLocalAliases();
if(refresh.isRequired()) {
refresh.execute();
}
} else if (requestCode == FileExplorerFragment.STREAMING_INTENT_RESULT) {
Intent serveIntent = new Intent(this, StreamingService.class);
context.stopService(serveIntent);
Expand Down Expand Up @@ -958,6 +954,10 @@ protected void onPostExecute(Boolean success) {
AppShortcutsHelper.removeAllAppShortcuts(context);
AppShortcutsHelper.populateAppShortcuts(context, rclone.getRemotes());
pinRemotesToDrawer();

if (fragment instanceof RemotesFragment) {
startRemotesFragment();
}
}
}

Expand Down Expand Up @@ -991,7 +991,6 @@ protected void onPostExecute(Boolean success) {
findViewById(R.id.locked_config).setVisibility(View.GONE);
AppShortcutsHelper.removeAllAppShortcuts(context);
AppShortcutsHelper.populateAppShortcuts(context, rclone.getRemotes());
startRemotesFragment();
}
}
}
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/empty_state_config_file.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
android:layout_below="@+id/empty_state_title"
android:layout_centerHorizontal="true"
android:layout_marginTop="8dp"
android:gravity="center"
android:text="@string/no_config_found" />

<Button
Expand Down

0 comments on commit 2564fd4

Please sign in to comment.