Skip to content

Commit 77db8c2

Browse files
committed
Bug fixes and metadata stuff
1 parent 30ab74e commit 77db8c2

File tree

14 files changed

+14
-12
lines changed

14 files changed

+14
-12
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/build
2-
.idea
2+
.idea/
33
/app/release
44
/app/build
55
.gradle/

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
applicationId "com.adgad.kboard"
88
minSdkVersion 19
99
targetSdkVersion 28
10-
versionCode 31
11-
versionName "4.1.2"
10+
versionCode 33
11+
versionName "4.1.4"
1212
}
1313
buildTypes {
1414
release {

app/src/main/java/com/adgad/kboard/KCommands.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,6 @@ public void curl(int n, String parameter) {
418418
new Response.Listener<String>() {
419419
@Override
420420
public void onResponse(String response) {
421-
// Display the first 500 characters of the response string.
422421
i(repeat, response);
423422
}
424423

app/src/main/java/com/adgad/kboard/KboardIME.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import java.util.ArrayList;
2424
import java.util.List;
2525
import java.util.Objects;
26+
import java.util.logging.Logger;
2627

2728

2829
/**
@@ -50,7 +51,7 @@ public class KboardIME extends InputMethodService
5051
private int totalScreens = 0;
5152
private int mRows = 5;
5253
private int mKeysPerScreen = 12;
53-
private final int KEYS_PER_ROW = 4;
54+
private int mKeysPerRow = 4;
5455

5556

5657

@@ -76,9 +77,9 @@ private void initPrefs() {
7677
mSoundOnClick = sharedPref.getBoolean("sound_on", false);
7778
mPassiveAggressive = sharedPref.getBoolean("passive_aggressive", false);
7879
mRows = Integer.parseInt(Objects.requireNonNull(sharedPref.getString("rows", "5")));
79-
mKeysPerScreen = mRows * KEYS_PER_ROW;
80+
mKeysPerRow = (mRows == 1) ? 1 : 4;
81+
mKeysPerScreen = mRows * mKeysPerRow;
8082
setKeys();
81-
8283
}
8384

8485

@@ -88,7 +89,7 @@ private void setKeys() {
8889
String defaultJson = gson.toJson(Keys.getDefault());
8990
String keysAsString = sharedPref.getString(Keys.STORAGE_KEY, defaultJson);
9091
keys = gson.fromJson(keysAsString, ArrayList.class);
91-
totalScreens = (int)Math.ceil((double)keys.size() / (mRows * KEYS_PER_ROW));
92+
totalScreens = (int)Math.ceil((double)keys.size() / (mRows * mKeysPerRow));
9293

9394
}
9495
@Override public void onInitializeInterface() {

app/src/main/java/com/adgad/kboard/PrefsActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
5353
toast.show();
5454
return true;
5555
case R.id.macro_help:
56-
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/adgad/kboard/blob/master/README.md"));
56+
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/adgad/kboard/wiki"));
5757
startActivity(browserIntent);
5858
return true;
5959
default:

app/src/main/res/xml/one_row.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
android:verticalGap="0px"
88
android:keyHeight="40dp"
99
>
10-
<Row android:keyHeight="60dp">
11-
<Key android:codes="-101" android:keyLabel="ಠ_ಠ" android:keyWidth="100%p"/>
10+
<Row android:keyHeight="80dp">
11+
<Key android:codes="-101" android:keyLabel="ಠ_ಠ" android:keyWidth="100%p" android:keyHeight="80dp"/>
1212
</Row>
1313
<Row android:keyHeight="45dp"
1414
>
112 KB
Loading
108 KB
Loading
253 KB
Loading
112 KB
Loading

0 commit comments

Comments
 (0)