Skip to content

Commit

Permalink
Update version, changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
billthefarmer committed Sep 13, 2022
1 parent 7d0f1c1 commit 3eb5676
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ android {
applicationId "org.billthefarmer.scope"
minSdkVersion 14
targetSdkVersion 28
versionCode 131
versionName "1.31"
versionCode 132
versionName "1.32"
buildConfigField "long", "BUILT", System.currentTimeMillis() + "L"
}

Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-GB/changelog/132.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Fix android 13 toasts
4 changes: 4 additions & 0 deletions src/main/java/org/billthefarmer/scope/SpectrumActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ void showToast(String text)
// Make a new one
toast = Toast.makeText(this, text, Toast.LENGTH_SHORT);
toast.setGravity(Gravity.CENTER, 0, 0);
// Fix for android 13
View view = toast.getView();
if (view != null && Build.VERSION.SDK_INT > Build.VERSION_CODES.P)
view.setBackgroundResource(R.drawable.toast_frame);
toast.show();
}

Expand Down

0 comments on commit 3eb5676

Please sign in to comment.