mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
android remove unused code
This commit is contained in:
parent
d02ee60fa3
commit
e4ffff8c3f
@ -1,10 +1,8 @@
|
|||||||
package org.kiwix.kiwixmobile;
|
package org.kiwix.kiwixmobile;
|
||||||
|
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.InputStream;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
@ -414,27 +412,6 @@ public class KiwixMobileActivity extends Activity {
|
|||||||
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0);
|
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
private String readTextFromResource(int resourceID)
|
|
||||||
{
|
|
||||||
InputStream raw = getResources().openRawResource(resourceID);
|
|
||||||
ByteArrayOutputStream stream = new ByteArrayOutputStream();
|
|
||||||
int i;
|
|
||||||
try
|
|
||||||
{
|
|
||||||
i = raw.read();
|
|
||||||
while (i != -1)
|
|
||||||
{
|
|
||||||
stream.write(i);
|
|
||||||
i = raw.read();
|
|
||||||
}
|
|
||||||
raw.close();
|
|
||||||
}
|
|
||||||
catch (IOException e)
|
|
||||||
{
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
return stream.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void showWelcome() {
|
private void showWelcome() {
|
||||||
webView.loadUrl("file:///android_res/raw/welcome.html");
|
webView.loadUrl("file:///android_res/raw/welcome.html");
|
||||||
|
@ -67,7 +67,6 @@ public class ZimContentProvider extends ContentProvider {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public native boolean getTitle(JNIKiwixString title);
|
|
||||||
|
|
||||||
public static String getMainPage() {
|
public static String getMainPage() {
|
||||||
if (jniKiwix==null)
|
if (jniKiwix==null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user