Commit Graph

12 Commits

Author SHA1 Message Date
Nathan Freitas 8d8fe0ceb4 updates to improve VPN support 2015-12-30 13:21:33 -05:00
Hans-Christoph Steiner a81c0001d6 init file path variables (tor, polipo, etc) when the app starts
These file path variables can be set at the very start, OrbotApp.onCreate()
and they will not change during the lifetime of the app, so represent them
as globally accessible static variables.  This is needed for things like
OrbotMainActivity detecting whether the tor daemon is still running, even
though TorService is not.
2015-06-17 12:06:23 -04:00
Hans-Christoph Steiner a3d37e8b2a make prefs called directly when needed instead of requiring refresh
The code was using global variables that were refreshed from the prefs on
certain occasions.  That means that the global vars could easily get out of
sync with the actual values.  Instead, just read the prefs directly when
the values are needed, and they will always be up-to-date.
2015-06-09 22:01:51 -04:00
Hans-Christoph Steiner fbf9932be3 rework setting locale from pref to have a lighter touch and be dynamic
This leaves the default Locale unchanged, i.e. Locale.setDefault().  This
also will immediately change the language after the user selects it in the
pref.
2015-06-05 17:09:10 -04:00
Hans-Christoph Steiner d43a6cd2b2 switch language/locale preference to use Languages utility class
The Languages utility class merges the techniques from ChatSecure and
Courier.  It fetches the supported locales from the APK itself, and fetches
the native names of the languages from the system.
2015-06-05 15:19:57 -04:00
Nathan Freitas 6a7c593353 a little bit of code re-org and new package for wizard 2015-03-28 00:39:58 -04:00
Nathan Freitas 144460beed fixes for preference handling in multi process context 2014-04-25 12:44:21 -04:00
n8fr8 8023d16ce8 updated locale handling to stop flashing 2013-02-07 15:24:01 +07:00
Nathan Freitas 332bf93ffd added locale selection pref capability 2012-02-26 22:48:30 -05:00
Nathan Freitas 3a9a269296 updates for manually setting locales 2012-02-24 00:13:27 -05:00
Nathan Freitas 48ea51ff8e cleaned up locale, set default to EN 2012-02-12 12:29:30 -05:00
Nathan Freitas 411dcea837 added app class to handle language settings 2012-02-12 01:23:29 -05:00