got rid of iitc source setting
* the developer mode makes it pretty much useless * it's broken since the new fileManager was introduced. nobody complained that it doesn't work -> nobody uses this feature.
This commit is contained in:
		| @@ -27,7 +27,6 @@ import java.io.InputStream; | ||||
| import java.io.OutputStream; | ||||
| import java.io.PipedInputStream; | ||||
| import java.io.PipedOutputStream; | ||||
| import java.net.URL; | ||||
| import java.net.URLEncoder; | ||||
| import java.util.HashMap; | ||||
|  | ||||
| @@ -155,27 +154,6 @@ public class IITC_FileManager { | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         final String source = mPrefs.getString("pref_iitc_source", "local"); | ||||
|         if (!source.equals("local")) { | ||||
|             // load iitc script from web or asset folder | ||||
|             if (source.contains("http")) { | ||||
|                 try { | ||||
|                     final URL context = new URL(source); | ||||
|                     final URL url = new URL(context, filename); | ||||
|                     return url.openStream(); | ||||
|                 } catch (final IOException e) { | ||||
|                     Log.w(e); | ||||
|                 } | ||||
|             } else { | ||||
|                 final File file = new File(source + File.separatorChar + filename); | ||||
|                 try { | ||||
|                     return new FileInputStream(file); | ||||
|                 } catch (final FileNotFoundException e) { | ||||
|                     Log.w(e); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         // load plugins from asset folder | ||||
|         return mAssetManager.open(filename); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user