Skip to content

Commit

Permalink
V2.7
Browse files Browse the repository at this point in the history
Fix widget for older devices
  • Loading branch information
woheller69 committed Sep 20, 2024
1 parent afca52b commit 63ea4dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "org.woheller69.spritpreise"
minSdk 26
targetSdk 34
versionCode 26
versionName "2.6"
versionCode 27
versionName "2.7"

buildConfigField "String", "DEFAULT_API_KEY", "\"${project.findProperty("prop1")}\""
buildConfigField "String", "UNPATCHED_API_KEY", "\"OTgxMjBmODAtNzYwNy0zOTQxLTI3NGUtMDE5MGI0NDg2NmZh\""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public static void updateView(Context context, AppWidgetManager appWidgetManager
PendingIntent pendingIntent;
pendingIntent = PendingIntent.getActivity(context, appWidgetId, intent2, PendingIntent.FLAG_UPDATE_CURRENT|PendingIntent.FLAG_IMMUTABLE);
views.setOnClickPendingIntent(R.id.widget_layout, pendingIntent);
views.setFloat(R.id.widget_background,"setAlpha", (100.0f - prefManager.getInt("pref_WidgetTransparency", 0)) /100.0f);
views.setInt(R.id.widget_background,"setAlpha", (int) ((100.0f - prefManager.getInt("pref_WidgetTransparency", 0)) * 255 / 100.0f));

}

Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/de-DE/changelogs/27.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix widget for older devices

0 comments on commit 63ea4dc

Please sign in to comment.