<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    No, icon can only be 0 from the else branch, in that case it shall
    fall back to the default image.<br>
    <br>
    But I've meanwhile found (I think) your maps/track crash, commit is
    already in the hub. The checkbox handler didn't check if the map
    object is initialized.<br>
    <br>
<a class="moz-txt-link-freetext" href="https://github.com/openvehicles/Open-Vehicle-Android/blob/master/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/FragMap.java#L319">https://github.com/openvehicles/Open-Vehicle-Android/blob/master/OpenVehicleApp/src/main/java/com/openvehicles/OVMS/ui/FragMap.java#L319</a><br>
    <br>
    Regards,<br>
    Michael<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 25.09.22 um 15:46 schrieb Chris van
      der Meijden:<br>
    </div>
    <blockquote type="cite"
      cite="mid:08998fd20389a2f8b310039f28ba4e79cd1c93a4.camel@arachnon.de">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div>Just guessing, but does </div>
      <div><br>
      </div>
      <div>int icon;</div>
      <div><br>
      </div>
      <div>in <a
title="OpenVehicleApp/src/main/java/com/openvehicles/OVMS/receiver/MyGcmListenerService.java"
          class="Link--primary Truncate-text"
href="https://github.com/devmarxx/Open-Vehicle-Android/commit/3c13100a6a25257fe694be3050a1b76ca2b6fb44#diff-c13198cb33bb355f600c37f8889cedcb72346835dbb7e357c031c57aba424487"
          style="box-sizing: border-box; background-color: rgb(246, 248,
          250); min-width: 1ch; max-width: fit-content; overflow:
          hidden; text-overflow: ellipsis; white-space: nowrap;
          font-family: ui-monospace, SFMono-Regular, "SF
          Mono", Menlo, Consolas, "Liberation Mono",
          monospace; font-size: 12px; font-variant-ligatures: normal;
          orphans: 2; widows: 2; color: var(--color-accent-fg)
          !important;" moz-do-not-send="true">MyGcmListenerService.java</a> at
        line 132</div>
      <div><br>
      </div>
      <div>not need to be initialized like</div>
      <div><br>
      </div>
      <div>int icon = 0;</div>
      <div><br>
      </div>
      <div>now you use</div>
      <div><br>
      </div>
      <div>
        <div><span style="color: rgb(36, 41, 47); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; background-color: rgb(230, 255, 236); text-decoration-thickness: initial;">.</span><span class="pl-en" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; background-color: rgb(230, 255, 236); text-decoration-thickness: initial;">setSmallIcon</span><span style="color: rgb(36, 41, 47); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; background-color: rgb(230, 255, 236); text-decoration-thickness: initial;">(</span><span class="x x-first x-last" style="box-sizing: border-box; border-radius: 0.2em; color: rgb(36, 41, 47); background-color: var(--color-diff-blob-addition-word-bg); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; text-decoration-thickness: initial;">(</span><span class="pl-s1" style="box-sizing: border-box; color: rgb(36, 41, 47); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; background-color: rgb(230, 255, 236); text-decoration-thickness: initial;">icon</span><span class="x x-first" style="box-sizing: border-box; border-top-left-radius: 0.2em; border-bottom-left-radius: 0.2em; color: rgb(36, 41, 47); background-color: var(--color-diff-blob-addition-word-bg); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; text-decoration-thickness: initial;"> != </span><span class="pl-c1 x" style="box-sizing: border-box; color: rgb(36, 41, 47); background-color: var(--color-diff-blob-addition-word-bg); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; text-decoration-thickness: initial;">0</span><span class="x" style="box-sizing: border-box; color: rgb(36, 41, 47); background-color: var(--color-diff-blob-addition-word-bg); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; text-decoration-thickness: initial;">) ? </span><span class="pl-s1 x" style="box-sizing: border-box; color: rgb(36, 41, 47); background-color: var(--color-diff-blob-addition-word-bg); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; text-decoration-thickness: initial;">icon</span><span class="x" style="box-sizing: border-box; color: rgb(36, 41, 47); background-color: var(--color-diff-blob-addition-word-bg); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; text-decoration-thickness: initial;"> : </span><span class="pl-smi x" style="box-sizing: border-box; color: rgb(36, 41, 47); background-color: var(--color-diff-blob-addition-word-bg); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; text-decoration-thickness: initial;">R</span><span class="x" style="box-sizing: border-box; color: rgb(36, 41, 47); background-color: var(--color-diff-blob-addition-word-bg); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; text-decoration-thickness: initial;">.</span><span class="pl-s1 x" style="box-sizing: border-box; color: rgb(36, 41, 47); background-color: var(--color-diff-blob-addition-word-bg); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; text-decoration-thickness: initial;">drawable</span><span class="x" style="box-sizing: border-box; color: rgb(36, 41, 47); background-color: var(--color-diff-blob-addition-word-bg); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; text-decoration-thickness: initial;">.</span><span class="pl-s1 x x-last" style="box-sizing: border-box; border-top-right-radius: 0.2em; border-bottom-right-radius: 0.2em; color: rgb(36, 41, 47); background-color: var(--color-diff-blob-addition-word-bg); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; text-decoration-thickness: initial;">map_car_default</span><span style="color: rgb(36, 41, 47); font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; font-variant-ligatures: normal; orphans: 2; white-space: pre; widows: 2; background-color: rgb(230, 255, 236); text-decoration-thickness: initial;">)</span></div>
      </div>
      <div><br>
      </div>
      <div>at line 150 now?</div>
      <div><br>
      </div>
      <div>As the images and the Google stuff are related to that
        integer it made me thinking ...</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>Am Sonntag, dem 25.09.2022 um 11:52 +0200 schrieb Michael
        Balzer:</div>
      <blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px
        #729fcf solid;padding-left:1ex">
        <div> Chris,<br>
          <br>
          that's not a crash log, that's just a warning.<br>
          <br>
          On that warning: the App requests
          android.permission.ACCESS_FINE_LOCATION by it's manifest.
          Maybe with LineageOS you need to manually give it that
          permission?<br>
          <br>
          A crash log has class "E" (error) and includes an exception
          and a backtrace, for an example see: <a
            class="moz-txt-link-freetext"
            href="https://issuetracker.google.com/issues/201308676#comment4"
            moz-do-not-send="true">https://issuetracker.google.com/issues/201308676#comment4</a><br>
          <br>
          On the crash: maybe it's because you don't have the Google
          components, not sure if FragMap can handle that.<br>
          <br>
          The forum post relates to /e/OS … maybe I need some emulator
          images running alternative Androids now…<br>
          <br>
          Regards,<br>
          Michael<br>
          <br>
          <br>
        </div>
        <div class="moz-cite-prefix">Am 25.09.22 um 11:40 schrieb Chris
          van der Meijden:<br>
        </div>
        <div>
          <meta http-equiv="content-type" content="text/html;
            charset=UTF-8">
        </div>
        <div>Hey Michael,</div>
        <div><br>
        </div>
        <div>this is from logcat when I change "Track vehicle" and the
          app crashes:</div>
        <div><br>
        </div>
        <div>09-25 11:16:01.410 1710 1839 W BroadcastQueue: Permission
          Denial: receiving Intent {
          act=android.intent.action.SERVICE_STATE flg=0x1000010 (has
          extras) } to ProcessRecord{8dcdd54
          2053:com.android.systemui/u0a148} (pid=2053, uid=10148)
          requires android.permission.ACCESS_FINE_LOCATION due to sender
          android (uid 1001)</div>
        <div><br>
        </div>
        <div>I saw now, that this crash also happens in the production
          app.</div>
        <div><br>
        </div>
        <div>The widget is running well. I will keep the app running for
          while and will see if it stays stable.</div>
        <div><br>
        </div>
        <div>Regards</div>
        <div><br>
        </div>
        <div>Chris</div>
        <div><br>
        </div>
        <div>Am Samstag, dem 24.09.2022 um 23:02 +0200 schrieb Michael
          Balzer:</div>
        <div> <br>
        </div>
        <blockquote type="cite" style="margin:0 0 0 .8ex;
          border-left:2px #729fcf solid;padding-left:1ex">
          <div> Chris,<br>
            <br>
            thanks for testing. A crash log would help on any crashes
            you see. Btw, I don't bump the revision until the actual
            release build.<br>
            <br>
            Crashes related to the car image don't occur immediately, it
            sometimes takes hours of use before it happens. When it
            does, clearing the App cache fixes the crash for another
            random period.<br>
            <br>
            Speed optimization was one goal. What about the widget?<br>
            <br>
            Thanks,<br>
            Michael<br>
            <br>
            <br>
          </div>
          <div class="moz-cite-prefix">Am 24.09.22 um 22:43 schrieb
            Chris van der Meijden:<br>
          </div>
          <div>
            <meta http-equiv="content-type" content="text/html;
              charset=UTF-8">
          </div>
          <div>Hey Michael,</div>
          <div><br>
          </div>
          <div>I just installed the "release" Version on LineageOS 19.1
            (Android 12) without Google components.</div>
          <div><br>
          </div>
          <div>The vehicle setup was without any troubles. I could
            select the yellow VW e-UP image without crashing.</div>
          <div><br>
          </div>
          <div>The App version is set wrong under "Vehicle info"
            (3.19.1, 2021122401).</div>
          <div><br>
          </div>
          <div>Everything seems to be faster than before.</div>
          <div><br>
          </div>
          <div>When I change the checkbox on "Track vehicle" under
            "Position" the App crashes. But after a new start of the app
            the value of the checkbox has changed.</div>
          <div><br>
          </div>
          <div>Perhaps this first impression is of some help.</div>
          <div><br>
          </div>
          <div>Regards</div>
          <div><br>
          </div>
          <div>Chris</div>
          <div><br>
          </div>
          <div>Am Samstag, dem 24.09.2022 um 20:10 +0200 schrieb Michael
            Balzer:</div>
          <div> <br>
          </div>
          <div> <br>
          </div>
          <blockquote type="cite" style="margin:0 0 0 .8ex;
            border-left:2px #729fcf solid;padding-left:1ex">
            <div> Everyone,<br>
              <br>
              I'm currently working on the next Android release
              including KustomWidget support and a native app widget
              based on the old Automagic gauge widget.<br>
              <br>
              Automagic has been dead for some time now, and it keeps
              crashing on Androids >= 7.<br>
              <br>
              My changes so far are in the hub, APK builds are available
              here:<br>
            </div>
            <div> </div>
            <ul>
              <li><a class="moz-txt-link-freetext"
href="https://dexters-web.de/f/tw-beta/OpenVehicleApp-22092401-release.apk"
                  moz-do-not-send="true">https://dexters-web.de/f/tw-beta/OpenVehicleApp-22092401-release.apk</a></li>
              <li>debug build for extended logging: <a
                  class="moz-txt-link-freetext"
href="https://dexters-web.de/f/tw-beta/OpenVehicleApp-22092401-debug.apk"
                  moz-do-not-send="true">https://dexters-web.de/f/tw-beta/OpenVehicleApp-22092401-debug.apk</a></li>
            </ul>
            <div> <br>
              There's an issue with the App related to Android >= 10
              though, which I haven't found yet. It's been reported in
              the forum:<br>
            </div>
            <div> </div>
            <ul>
              <li><a class="moz-txt-link-freetext"
                  href="https://www.openvehicles.com/node/3410"
                  moz-do-not-send="true">https://www.openvehicles.com/node/3410</a></li>
            </ul>
            <p>I could use some help with that, I've got no idea other
              than blaming Android.<br>
            </p>
            <div> I've seen the effect in my emulator tests, and it
              seems to occur more frequently with non-roadster images.<br>
              <br>
              Regards,<br>
              Michael<br>
              <br>
            </div>
            <pre><div>_______________________________________________</div></pre>
            <pre><div>OvmsDev mailing list</div></pre>
            <pre><div><a href="mailto:OvmsDev@lists.openvehicles.com" moz-do-not-send="true" class="moz-txt-link-freetext">OvmsDev@lists.openvehicles.com</a></div></pre>
            <pre><div><a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" moz-do-not-send="true" class="moz-txt-link-freetext">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a></div></pre>
          </blockquote>
          <div><br>
          </div>
          <div><span></span></div>
          <div> <br>
            <fieldset class="moz-mime-attachment-header"></fieldset>
          </div>
          <pre>_______________________________________________</pre>
          <pre>OvmsDev mailing list</pre>
          <pre><a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:OvmsDev@lists.openvehicles.com" moz-do-not-send="true">OvmsDev@lists.openvehicles.com</a></pre>
          <pre><a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" moz-do-not-send="true">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a></pre>
          <div> <br>
          </div>
          <pre><div>_______________________________________________</div></pre>
          <pre><div>OvmsDev mailing list</div></pre>
          <pre><div><a href="mailto:OvmsDev@lists.openvehicles.com" moz-do-not-send="true" class="moz-txt-link-freetext">OvmsDev@lists.openvehicles.com</a></div></pre>
          <pre><div><a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" moz-do-not-send="true" class="moz-txt-link-freetext">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a></div></pre>
        </blockquote>
        <div><br>
        </div>
        <div><span></span></div>
        <div> <br>
          <fieldset class="moz-mime-attachment-header"></fieldset>
        </div>
        <pre>_______________________________________________</pre>
        <pre>OvmsDev mailing list</pre>
        <pre><a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:OvmsDev@lists.openvehicles.com" moz-do-not-send="true">OvmsDev@lists.openvehicles.com</a></pre>
        <pre><a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" moz-do-not-send="true">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a></pre>
        <div> <br>
        </div>
        <pre><div>_______________________________________________
</div></pre>
        <pre><div>OvmsDev mailing list
</div></pre>
        <pre><div><a href="mailto:OvmsDev@lists.openvehicles.com" moz-do-not-send="true" class="moz-txt-link-freetext">OvmsDev@lists.openvehicles.com</a>
</div></pre>
        <pre><div><a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" moz-do-not-send="true" class="moz-txt-link-freetext">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</div></pre>
      </blockquote>
      <div><br>
      </div>
      <div><span></span></div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26</pre>
  </body>
</html>