mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 23:40:26 -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
@ -518,7 +518,7 @@ for arch in ARCHS:
|
|||||||
|
|
||||||
if COMPILE_APK:
|
if COMPILE_APK:
|
||||||
# create locales.txt
|
# create locales.txt
|
||||||
create_locales.write_locales(create_locales.get_all_language_codes())
|
# create_locales.write_locales(create_locales.get_all_language_codes())
|
||||||
syscall('rm -f bin/*.apk', shell=True)
|
syscall('rm -f bin/*.apk', shell=True)
|
||||||
syscall('ant debug')
|
syscall('ant debug')
|
||||||
syscall('ls -lh bin/*.apk', shell=True)
|
syscall('ls -lh bin/*.apk', shell=True)
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.kiwix.kiwixmobile;
|
package org.kiwix.kiwixmobile;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.graphics.Color;
|
||||||
import android.graphics.Typeface;
|
import android.graphics.Typeface;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.util.AttributeSet;
|
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
|
// 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.
|
// 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
|
// The Factory is called on each element name as the xml is parsed and we can therefore modify
|
||||||
// Elements while the content is being parsed.
|
// the parsed Elements.
|
||||||
// A Factory can only be set once on a LayoutInflator. And since we are using the support Library,
|
// 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
|
// 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.
|
// and make it accessible set it to false again.
|
||||||
public void changeFont(LayoutInflater layoutInflater) {
|
public void changeFont(LayoutInflater layoutInflater) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user