Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikey1982 committed Aug 29, 2016
1 parent 0d06f6c commit 56633c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ private void installWwwFolder() {
}


AssetsHelper.copyAssetDirectoryToAppDirectory(cordova.getActivity().getApplicationContext(),cordova.getActivity().getAssets(), WWW_FOLDER, fileStructure.getWwwFolder());
AssetsHelper.copyAssetDirectoryToAppDirectory(cordova.getActivity().getApplicationContext(), WWW_FOLDER, fileStructure.getWwwFolder());
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.nordnetab.chcp.main.utils;

import android.content.Context;
import android.content.res.AssetManager;

import com.nordnetab.chcp.main.events.AssetsInstallationErrorEvent;
import com.nordnetab.chcp.main.events.AssetsInstalledEvent;
Expand Down Expand Up @@ -35,15 +34,14 @@ private AssetsHelper() {
* Copy files from the assets folder into the specific folder on the external storage.
* Method runs asynchronously. Results are dispatched through events.
*
* @param applicationContext
* @param assetManager assets manager
* @param applicationContext current application context
* @param fromDirectory which directory in assets we want to copy
* @param toDirectory absolute path to the destination folder on the external storage
* @see AssetsInstallationErrorEvent
* @see AssetsInstalledEvent
* @see EventBus
*/
public static void copyAssetDirectoryToAppDirectory(final Context applicationContext, final AssetManager assetManager, final String fromDirectory, final String toDirectory) {
public static void copyAssetDirectoryToAppDirectory(final Context applicationContext, final String fromDirectory, final String toDirectory) {
if (isWorking) {
return;
}
Expand Down

0 comments on commit 56633c5

Please sign in to comment.