Skip to content

Commit

Permalink
Fix another toast related crash
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-bennett committed Sep 13, 2015
1 parent d4aab86 commit cc51a76
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android {
applicationId "org.cipherdyne.fwknop2"
minSdkVersion 15
targetSdkVersion 19
versionCode 9
versionCode 10
versionName "1.1"
ndk {
moduleName 'libfwknop'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,6 @@ public void onLoaded() { // This is so ugly...
int duration = Toast.LENGTH_LONG;
Toast toast = Toast.makeText(context, text, duration);
toast.setGravity(Gravity.CENTER, 0, 0);
LinearLayout toastLayout = (LinearLayout) toast.getView();
TextView toastTV = (TextView) toastLayout.getChildAt(0);
toastTV.setTextSize(30);
toast.show();
}
}
Expand Down

0 comments on commit cc51a76

Please sign in to comment.