OSDN Git Service

fix: triage #17
authorhizumiaoba <56146205+hizumiaoba@users.noreply.github.com>
Mon, 11 Oct 2021 08:14:54 +0000 (17:14 +0900)
committerhizumiaoba <56146205+hizumiaoba@users.noreply.github.com>
Mon, 11 Oct 2021 08:14:54 +0000 (17:14 +0900)
src/com/ranfa/lib/Settings.java

index 28996bb..8ae2442 100644 (file)
@@ -69,7 +69,7 @@ public class Settings {
                } catch (IOException e) {
                        e.printStackTrace();
                }
-               return res;
+               return res < 1 ? 640 : res;
        }
 
        public static int getWindowHeight() {
@@ -81,7 +81,7 @@ public class Settings {
                } catch (IOException e) {
                        e.printStackTrace();
                }
-               return res;
+               return res < 0 ? 360 : res;
        }
 
        public static int getSongsLimit() {