Commit a8569dfb authored by M M Arif's avatar M M Arif

Merge branch 'cleanup' into 'develop'


See merge request mmarif4u/gitnex!26
parents c57cda7d cce3cc4d
......@@ -24,7 +24,7 @@ Everyone can contribute to this project in many ways like writing code, creating
Fork the repository. Pull the forked repository from your namespace to your local machine. Create new branch and work on the bug/feature/enhacement etc. Push it to your forked version. From there create Merge Request(MR) against `develop` branch.
Help us translate it to your native language. Ask if you are not sure how to start. :)
Help us translate it to your native language. Ask us if you are not sure how and where to start. :)
## Build from source
Option 1 - Download the source code, open it in Android Studio and build it there.
......@@ -54,6 +54,7 @@ Option 2 - Open terminal(Linux) and cd to the project dir. Run `./gradlew build`
- Collaborators view for repository
- Markdown support
- Emoji support
- Settings : Pretty and Normal time format, language change
## Screenshots:
......@@ -6,8 +6,8 @@ android {
applicationId "org.mian.gitnex"
minSdkVersion 21
targetSdkVersion 28
versionCode 9
versionName "pre-alpha7"
versionCode 10
versionName "pre-alpha8"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildTypes {
......@@ -56,6 +56,10 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
final String loginUid = tinyDb.getString("loginUid");
final String instanceToken = "token " + tinyDb.getString(loginUid + "-token");
if(tinyDb.getString("locale").isEmpty()) {
tinyDb.putString("locale", "pretty");
String appLocale = tinyDb.getString("locale");
AppUtil.setAppLocale(getResources(), appLocale);
......@@ -39,7 +39,7 @@ public class SettingsFragment extends Fragment {
String[] allLanguages = res.getStringArray(R.array.langValues);
String[] allTime = res.getStringArray(R.array.timeValues);
final ArrayAdapter<String> adapterLang = new ArrayAdapter<String>(getContext(),
final ArrayAdapter<String> adapterLang = new ArrayAdapter<String>(Objects.requireNonNull(getContext()),
R.layout.spinner_item, allLanguages);
final ArrayAdapter<String> adapterTime = new ArrayAdapter<String>(getContext(),
R.layout.spinner_item, allTime);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment