Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 135e64a5 authored by Raman Tenneti's avatar Raman Tenneti Committed by Michael Bestas
Browse files

Gallery2 - Handle special character '×' (in addition to 'x') in the resolution string.

(×) is multiplication sign. It looks like some Camera apps specify
this as part of resolution.

Bug: 216176283
Test: make and Presubmit
Change-Id: I2836f7121293f1d594afaf76ef46d4e68190e355
parent 1f4c5def
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -118,7 +118,11 @@ public class LocalVideo extends LocalMediaItem {
    private void parseResolution(String resolution) {
        if (resolution == null) return;
        int m = resolution.indexOf('x');
        if (m == -1) {
          // Fix b/216176283 - Handle special character '×' in the resolution.
          m = resolution.indexOf('×');
          if (m == -1) return;
        }
        try {
            int w = Integer.parseInt(resolution.substring(0, m));
            int h = Integer.parseInt(resolution.substring(m + 1));