Skip to content

Commit

Permalink
1. forgot to update string.xml app_version and its done now
Browse files Browse the repository at this point in the history
2. another path on last patch so: ready for version 1.8.1
  • Loading branch information
ali77gh committed Sep 22, 2019
1 parent 4dd4c38 commit 9da004a
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 24 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ android {
applicationId "com.github.ali77gh.unitools"
minSdkVersion 19
targetSdkVersion 28
versionName '1.8.0'
versionName '1.8.1'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
versionCode 5
versionCode 6
}
buildTypes {
release {
Expand Down
Binary file modified app/release/app-release.apk
Binary file not shown.
20 changes: 1 addition & 19 deletions app/release/output.json
Original file line number Diff line number Diff line change
@@ -1,19 +1 @@
[
{
"outputType": {
"type": "APK"
},
"apkInfo": {
"type": "MAIN",
"splits": [],
"versionCode": 5,
"versionName": "1.8.0",
"enabled": true,
"outputFile": "app-release.apk",
"fullName": "release",
"baseName": "release"
},
"path": "app-release.apk",
"properties": {}
}
]
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":6,"versionName":"1.8.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
import com.github.ali77gh.unitools.core.CH;
import com.github.ali77gh.unitools.data.model.Time;
import com.github.ali77gh.unitools.data.model.UClass;

;
import com.github.ali77gh.unitools.data.repo.UClassRepo;

/**
* Created by ali77gh on 10/12/18.
Expand Down Expand Up @@ -54,7 +53,13 @@ protected void onCreate(Bundle savedInstanceState) {
title.setText(getActivity().getResources().getString(R.string.edit_new_class));
label.setText(uClass.what);
where.setText(uClass.where);

if (uClass.teacherName == null) { // while user data is older then version 1.8.0
uClass.teacherName = "";
UClassRepo.Update(uClass);
}
teacher.setText(uClass.teacherName);

hour.setText(String.valueOf(uClass.time.hour));
min.setText(String.valueOf(uClass.time.min));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.github.ali77gh.unitools.core.Translator;
import com.github.ali77gh.unitools.data.model.UClass;
import com.github.ali77gh.unitools.data.repo.UClassRepo;
import com.github.ali77gh.unitools.data.repo.UserInfoRepo;

import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -100,6 +101,10 @@ protected void onCreate(Bundle savedInstanceState) {

private void LoadData(UClass uClass) {
name.setText(Translator.getUClassReadable(uClass));
if (uClass.teacherName == null){ // while user data is older then version 1.8.0
uClass.teacherName = "";
UClassRepo.Update(uClass);
}
if (!uClass.teacherName.equals("")) {
teacherName.setText(CH.getString(R.string.teacher) + " : " + uClass.teacherName);
teacherName.setVisibility(View.VISIBLE);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<resources>
<string name="app_name">UniTools</string>
<string name="app_version">1.8.0</string>
<string name="app_version">1.8.1</string>

<string name="LangID">"en</string>

Expand Down

0 comments on commit 9da004a

Please sign in to comment.