Need to rewrite this smali if while (true) statement
<p>Can someone please help me convert this smali If while (true) statement properly?</p>

<p>I know when using dex2jar this is one of the drawbacks. Just trying to get this code working.</p>

<pre><code>public static boolean createZipFile(String String1, boolean Boolean, String String2)
  {
    File File = new File(String1);
    if ((!File.canRead()) || (!File.canWrite()))
    {
      Log.d("Pkg", String1 + " cannot be compressed due to file permissions");
      return false;
    }
    try
    {
      ZipOutputStream ZipOutputStream = new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(String2), 2048));
      if (Boolean)
        zipFile(String1, ZipOutputStream, "");
      while (true)
      {
        ZipOutputStream.close();
        return true;
        File[] arrayOfFile = File.listFiles();
        int i = arrayOfFile.length;
        for (int j = 0; j &lt; i; j++)
          zip_folder(arrayOfFile[j], ZipOutputStream);
      }
    }
</code></pre>
