Skip to content

Commit be1ff91

Browse files
committed
changed appbar icon name for consistency
1 parent 6502c45 commit be1ff91

File tree

7 files changed

+5
-4
lines changed

7 files changed

+5
-4
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# Android-PWA-Wrapper
22

33
A sample Android Wrapper application to create a native Android App from an offline-capable Progressive Web App.
4+
45
Drafted for the [Android App](https://play.google.com/store/apps/details?id=at.xtools.leasingrechner&utm_source=github.com&utm_medium=link&utm_campaign=store_visit) of my [Leasing Calculator](https://www.leasingrechnen.at) Web App using [React](https://github.com/facebook/react), [Redux](https://github.com/reactjs/redux), [Materialize.css](https://github.com/Dogfalo/materialize) and a lot of Offline-First love over at [leasingrechnen.at](https://www.leasingrechnen.at).
56

67
### Better README and v1.0 Release coming soon!
78

89
## How to use
9-
- Replace the 3 app icons in use (icon.png, icon_round.png, icon_appbar.png) -> [Android Asset Studio](https://romannurik.github.io/AndroidAssetStudio)
10-
- Put your Web App's URL in Constants.java -> WEBAPP_URL
10+
- Replace the 3 app icons in use (ic_launcher.png, ic_launcher_round.png, ic_appbar.png) -> [Android Asset Studio](https://romannurik.github.io/AndroidAssetStudio)
11+
- Put your Web App's URL in *Constants.java* -> **WEBAPP_URL**
1112
- Replace app name in strings.xml
1213
- Add your own primary colors to colors.xml
13-
- Change package name (Refactor package, change app/build.gradle)
14+
- Change package name to your own (**"applicationId"** in *app/build.gradle*)
1415
- Build in Android Studio
1516

1617
## License

app/src/main/java/at/xtools/pwawrapper/ui/UIManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public void setOffline(boolean offline) {
9393
// set icon in recent activity view to a white one to be visible in the app bar
9494
public void changeRecentAppsIcon() {
9595
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
96-
Bitmap iconWhite = BitmapFactory.decodeResource(activity.getResources(), R.drawable.icon_appbar);
96+
Bitmap iconWhite = BitmapFactory.decodeResource(activity.getResources(), R.drawable.ic_appbar);
9797

9898
TypedValue typedValue = new TypedValue();
9999
Resources.Theme theme = activity.getTheme();
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)