From 8d8c428c86930db2eddfb89cdab9d518d1365413 Mon Sep 17 00:00:00 2001 From: ansel <79257300125@ya.ru> Date: Wed, 7 Jun 2023 16:57:25 +0300 Subject: [PATCH] Clean up about items a little --- src/mahomaps/screens/AboutScreen.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/mahomaps/screens/AboutScreen.java b/src/mahomaps/screens/AboutScreen.java index 8c23ae9..8a4df25 100644 --- a/src/mahomaps/screens/AboutScreen.java +++ b/src/mahomaps/screens/AboutScreen.java @@ -33,10 +33,8 @@ public AboutScreen() { append(i); } catch (IOException e) { } - StringItem s = new StringItem("MahoMaps", - MahoMapsApp.text[35] + "\n" + MahoMapsApp.text[36] + " 1." + MahoMapsApp.version); - s.setLayout(Item.LAYOUT_LEFT | Item.LAYOUT_NEWLINE_AFTER | Item.LAYOUT_NEWLINE_BEFORE); - append(s); + add(new StringItem("MahoMaps", + MahoMapsApp.text[35] + "\n" + MahoMapsApp.text[36] + " 1." + MahoMapsApp.version)); if (MahoMapsApp.platform != null && MahoMapsApp.platform.indexOf("S60") != -1 && MahoMapsApp.platform.indexOf("platform_version=3.2") == -1) { // фокус на начало экрана @@ -73,17 +71,15 @@ public AboutScreen() { append(i); } catch (IOException e) { } - s = new StringItem(MahoMapsApp.text[67], "Powered by butthurt from nnchat\n292 labs (tm)"); - s.setLayout(Item.LAYOUT_LEFT | Item.LAYOUT_NEWLINE_BEFORE | Item.LAYOUT_NEWLINE_AFTER); - add(s); + add(new StringItem(MahoMapsApp.text[67], "Powered by butthurt from nnchat\n292 labs (tm)")); add(new StringItem(MahoMapsApp.text[68], "Гитхаб Анселя:\ngithub.com/Feodor0090\n" + "Канал Анселя:\nt.me/sym_ansel_blog\n" + "Борда rehdzi:\nnnchan.ru\n" + "Канал Димы:\nt.me/blogprostodimonich\n" + "Канал Лиса:\nt.me/GingerFox87_blog\n" + "Игра Выполя:\nt.me/mobap_game\n")); } - + private void add(StringItem item) { - item.setLayout(Item.LAYOUT_NEWLINE_AFTER | Item.LAYOUT_NEWLINE_BEFORE); + item.setLayout(Item.LAYOUT_NEWLINE_AFTER | Item.LAYOUT_NEWLINE_BEFORE | Item.LAYOUT_LEFT); append(item); }