From 5c074615db2ebf570ab52ae8506540e2c019032a Mon Sep 17 00:00:00 2001 From: crschnick Date: Fri, 13 Sep 2024 18:55:13 +0000 Subject: [PATCH] Data store formatting fixes --- app/src/main/java/io/xpipe/app/util/DataStoreFormatter.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/io/xpipe/app/util/DataStoreFormatter.java b/app/src/main/java/io/xpipe/app/util/DataStoreFormatter.java index 620cd5f15..cbf9d0103 100644 --- a/app/src/main/java/io/xpipe/app/util/DataStoreFormatter.java +++ b/app/src/main/java/io/xpipe/app/util/DataStoreFormatter.java @@ -61,6 +61,10 @@ public class DataStoreFormatter { return null; } + if (name.isEmpty()) { + return name; + } + return name.substring(0, 1).toUpperCase() + name.substring(1).toLowerCase(); }