mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 06:42:21 -04:00
Temporarily taking out the create_locales.py script. Will merge with the build-android-with-native.py script later.
This commit is contained in:
parent
babe48e62c
commit
cad802a88f
@ -517,8 +517,8 @@ for arch in ARCHS:
|
||||
change_env(ORIGINAL_ENVIRON)
|
||||
|
||||
if COMPILE_APK:
|
||||
#create locales.txt
|
||||
create_locales.write_locales(create_locales.get_all_language_codes())
|
||||
# create locales.txt
|
||||
# create_locales.write_locales(create_locales.get_all_language_codes())
|
||||
syscall('rm -f bin/*.apk', shell=True)
|
||||
syscall('ant debug')
|
||||
syscall('ls -lh bin/*.apk', shell=True)
|
||||
|
@ -1,6 +1,7 @@
|
||||
package org.kiwix.kiwixmobile;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Typeface;
|
||||
import android.os.Handler;
|
||||
import android.util.AttributeSet;
|
||||
@ -88,11 +89,11 @@ public class LanguageUtils {
|
||||
|
||||
// Change the font of all the TextViews and its subclasses in our whole app by attaching a custom
|
||||
// Factory to the LayoutInflater of the Activity.
|
||||
// The Factory is called on each element name as the xml is parsed and we can therefore modify the parsed
|
||||
// Elements while the content is being parsed.
|
||||
// A Factory can only be set once on a LayoutInflator. And since we are using the support Library,
|
||||
// The Factory is called on each element name as the xml is parsed and we can therefore modify
|
||||
// the parsed Elements.
|
||||
// A Factory can only be set once on a LayoutInflater. And since we are using the support Library,
|
||||
// which also sets a Factory on the LayoutInflator, we have to access the private field of the
|
||||
// LayoutInflater, that handles this restriction via the Java's reflection API
|
||||
// LayoutInflater, that handles this restriction via Java's reflection API
|
||||
// and make it accessible set it to false again.
|
||||
public void changeFont(LayoutInflater layoutInflater) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user