Compare commits

...

3 Commits

Author SHA1 Message Date
d8ceefef86 Release 3.1.1 (#665)
Release 3.1.1

Co-authored-by: M M Arif <mmarif@swatian.com>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/665
2020-08-24 12:18:15 +02:00
48d74a65b3 Fix crash on login (#664)
Fix crash on login

Co-authored-by: M M Arif <mmarif@swatian.com>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/664
2020-08-24 12:11:38 +02:00
ef07302c85 Fix edit comment draft (#663)
Fix edit comment draft

Co-authored-by: M M Arif <mmarif@swatian.com>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/663
2020-08-24 12:08:58 +02:00
6 changed files with 23 additions and 15 deletions

View File

@ -6,8 +6,8 @@ android {
applicationId "org.mian.gitnex" applicationId "org.mian.gitnex"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 29 targetSdkVersion 29
versionCode 310 versionCode 311
versionName "3.1.0" versionName "3.1.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
} }
buildFeatures { buildFeatures {

View File

@ -141,6 +141,8 @@ public class AddNewAccountActivity extends BaseActivity {
assert version != null; assert version != null;
tinyDB.putString("giteaVersion", version.getVersion());
try { try {
giteaVersion = new Version(version.getVersion()); giteaVersion = new Version(version.getVersion());
} }

View File

@ -280,6 +280,8 @@ public class LoginActivity extends BaseActivity {
assert version != null; assert version != null;
tinyDB.putString("giteaVersion", version.getVersion());
try { try {
gitea_version = new Version(version.getVersion()); gitea_version = new Version(version.getVersion());
} }

View File

@ -104,7 +104,12 @@ public class ReplyToIssueActivity extends BaseActivity {
} }
else { else {
draftIdOnCreate = returnDraftId(); if(getIntent().getStringExtra("commentBody") != null) {
draftIdOnCreate = returnDraftId(getIntent().getStringExtra("commentBody"));
}
else {
draftIdOnCreate = returnDraftId("");
}
} }
replyButton = findViewById(R.id.replyButton); replyButton = findViewById(R.id.replyButton);
@ -216,7 +221,7 @@ public class ReplyToIssueActivity extends BaseActivity {
} }
private long returnDraftId() { private long returnDraftId(String draftText) {
TinyDB tinyDb = new TinyDB(getApplicationContext()); TinyDB tinyDb = new TinyDB(getApplicationContext());
@ -226,7 +231,7 @@ public class ReplyToIssueActivity extends BaseActivity {
DraftsApi draftsApi = new DraftsApi(appCtx); DraftsApi draftsApi = new DraftsApi(appCtx);
return draftsApi.insertDraft(repositoryId, currentActiveAccountId, issueNumber, "", StaticGlobalVariables.draftTypeComment, ""); return draftsApi.insertDraft(repositoryId, currentActiveAccountId, issueNumber, draftText, StaticGlobalVariables.draftTypeComment, "");
} }

View File

@ -1,16 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<changelog> <changelog>
<release version="3.1.0" versioncode="310"> <release version="3.1.1" versioncode="311">
<change>Multiple accounts support</change> <change>Bugfix: Fix crash on new login</change>
<change>New Retro theme</change> <change>Bugfix: Fix new drafts for issue comments</change>
<change>Delete OR Edit a file</change>
<change>Repository forks</change>
<change>Markdown support in file viewer</change>
<change>New Progress indicators</change>
<change>Create drafts per edit and improve it's UI</change>
<change>Enhance App UI across all screens</change>
<change>Copy repo / org / issue comment url to clipboard</change>
</release> </release>
</changelog> </changelog>

View File

@ -0,0 +1,6 @@
3.1.1
Bugfix: Fix crash on new login
Bugfix: Fix new drafts for issue comments
Release Notes: https://codeberg.org/gitnex/GitNex/releases