android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java 
|    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit f09d71bacab49530ed5c8033858e97bb7a35fb4c
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Mon Apr 13 12:21:43 2020 -0400
Commit:     Henry Castro <hcas...@collabora.com>
CommitDate: Mon Apr 20 23:24:12 2020 +0200

    android: fix missing brand resource
    
    configured with no brand and I get the following error:
    
    ./gradlew assemble
    
    : error: cannot find symbol
            builder .setIcon(BuildConfig.APP_HAS_BRANDING? 
R.drawable.ic_launcher_brand: R.drawable.lo_icon)
      symbol:   variable ic_launcher_brand
      location: class drawable
    
    Change-Id: Ibf3dcf581f12190ba4664b286710fc5a8ef43fe2
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92120
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Henry Castro <hcas...@collabora.com>

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java 
b/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java
index 89fd32e74..0afad916a 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java
@@ -82,7 +82,9 @@ public class AboutDialogFragment extends DialogFragment {
         vendorView.setText(vendor);
 
         AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
-        builder .setIcon(BuildConfig.APP_HAS_BRANDING? 
R.drawable.ic_launcher_brand: R.drawable.lo_icon)
+        int brandIcon = this.getResources().getIdentifier("ic_launcher_brand", 
"drawable",
+                this.getActivity().getPackageName());
+        builder .setIcon(BuildConfig.APP_HAS_BRANDING? brandIcon: 
R.drawable.lo_icon)
                 .setTitle(R.string.app_name)
                 .setView(messageView)
                 .setNegativeButton(R.string.about_license, new 
DialogInterface.OnClickListener() {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to