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

Commit c8b5598a authored by Luke Edgar's avatar Luke Edgar Committed by Automerger Merge Worker
Browse files

Merge "AAPT Files - Permit invariant filepaths for getting file names" am: 0ba2a37e

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1884590

Change-Id: I9c97f7859fd833fdac44b54e30fb4fc6e6f6255e
parents 0c736664 0ba2a37e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ StringPiece GetFilename(const StringPiece& path) {
  const char* end = path.end();
  const char* last_dir_sep = path.begin();
  for (const char* c = path.begin(); c != end; ++c) {
    if (*c == sDirSep) {
    if (*c == sDirSep || *c == sInvariantDirSep) {
      last_dir_sep = c + 1;
    }
  }
+2 −0
Original line number Diff line number Diff line
@@ -41,6 +41,8 @@ constexpr const char sDirSep = '/';
constexpr const char sPathSep = ':';
#endif

constexpr const char sInvariantDirSep = '/';

enum class FileType {
  kUnknown = 0,
  kNonexistant,