Move checkAssets to method
This commit is contained in:
parent
316007b68f
commit
7f9c8f6149
1 changed files with 7 additions and 3 deletions
|
@ -198,6 +198,10 @@ public class DataStoragePlaceDialogFragment extends BottomSheetDialogFragment {
|
||||||
return sz;
|
return sz;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void checkAssets() {
|
||||||
|
getMyApplication().getResourceManager().checkAssets(IProgress.EMPTY_PROGRESS, true);
|
||||||
|
}
|
||||||
|
|
||||||
private void updateDownloadIndexes() {
|
private void updateDownloadIndexes() {
|
||||||
DownloadIndexesThread downloadIndexesThread = getMyApplication().getDownloadThread();
|
DownloadIndexesThread downloadIndexesThread = getMyApplication().getDownloadThread();
|
||||||
downloadIndexesThread.runReloadIndexFilesSilent();
|
downloadIndexesThread.runReloadIndexFilesSilent();
|
||||||
|
@ -208,7 +212,7 @@ public class DataStoragePlaceDialogFragment extends BottomSheetDialogFragment {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
saveFilesLocation(deviceStorageType, deviceStorage, getActivity());
|
saveFilesLocation(deviceStorageType, deviceStorage, getActivity());
|
||||||
getMyApplication().getResourceManager().checkAssets(IProgress.EMPTY_PROGRESS, true);
|
checkAssets();
|
||||||
updateDownloadIndexes();
|
updateDownloadIndexes();
|
||||||
isInterestedInFirstTime = false;
|
isInterestedInFirstTime = false;
|
||||||
dismiss();
|
dismiss();
|
||||||
|
@ -220,7 +224,7 @@ public class DataStoragePlaceDialogFragment extends BottomSheetDialogFragment {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
saveFilesLocation(sharedStorageType, sharedStorage, getActivity());
|
saveFilesLocation(sharedStorageType, sharedStorage, getActivity());
|
||||||
getMyApplication().getResourceManager().checkAssets(IProgress.EMPTY_PROGRESS, true);
|
checkAssets();
|
||||||
updateDownloadIndexes();
|
updateDownloadIndexes();
|
||||||
isInterestedInFirstTime = false;
|
isInterestedInFirstTime = false;
|
||||||
dismiss();
|
dismiss();
|
||||||
|
@ -232,7 +236,7 @@ public class DataStoragePlaceDialogFragment extends BottomSheetDialogFragment {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
boolean res = saveFilesLocation(cardStorageType, cardStorage, getActivity());
|
boolean res = saveFilesLocation(cardStorageType, cardStorage, getActivity());
|
||||||
getMyApplication().getResourceManager().checkAssets(IProgress.EMPTY_PROGRESS, true);
|
checkAssets();
|
||||||
updateDownloadIndexes();
|
updateDownloadIndexes();
|
||||||
isInterestedInFirstTime = false;
|
isInterestedInFirstTime = false;
|
||||||
if (res) {
|
if (res) {
|
||||||
|
|
Loading…
Reference in a new issue