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

Commit 3d5ecf13 authored by Filip Gruszczynski's avatar Filip Gruszczynski Committed by Android Git Automerger
Browse files

am 129f1946: Merge "Prevent index out of bounds when using String.substring." into lmp-sprout-dev

* commit '129f1946':
  Prevent index out of bounds when using String.substring.
parents 20791338 129f1946
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -275,9 +275,10 @@ public class WallpaperManagerService extends IWallpaperManager.Stub {
                        } else {
                            mWallpaper.lastDiedTime = SystemClock.uptimeMillis();
                        }
                        final String flattened = name.flattenToString();
                        EventLog.writeEvent(EventLogTags.WP_WALLPAPER_CRASHED,
                                name.flattenToString().substring(0,
                                        MAX_WALLPAPER_COMPONENT_LOG_LENGTH));
                                flattened.substring(0, Math.min(flattened.length(),
                                        MAX_WALLPAPER_COMPONENT_LOG_LENGTH)));
                    }
                }
            }