]> git.ktnx.net Git - mobile-ledger.git/commitdiff
another compiler warning about fixed non-translatable string
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 20 Jul 2019 19:23:08 +0000 (22:23 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 20 Jul 2019 19:23:08 +0000 (22:23 +0300)
replaced with a constant declaration

app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java

index f4cdae1d097b63f342ed4e313d0a5669e440dd6c..3560831e71945c81bfa12853787693036d119aea 100644 (file)
@@ -49,6 +49,7 @@ import net.ktnx.mobileledger.ui.HueRingDialog;
 import net.ktnx.mobileledger.ui.activity.ProfileDetailActivity;
 import net.ktnx.mobileledger.utils.Colors;
 
+import org.jetbrains.annotations.NonNls;
 import org.jetbrains.annotations.NotNull;
 
 import java.net.MalformedURLException;
@@ -69,6 +70,8 @@ public class ProfileDetailFragment extends Fragment implements HueRingDialog.Hue
      * represents.
      */
     public static final String ARG_ITEM_ID = "item_id";
+    @NonNls
+    private static final String HTTPS_URL_START = "https://";
 
     /**
      * The dummy content this fragment is presenting.
@@ -274,7 +277,7 @@ public class ProfileDetailFragment extends Fragment implements HueRingDialog.Hue
         }
         else {
             profileName.setText("");
-            url.setText("https://");
+            url.setText(HTTPS_URL_START);
             postingPermitted.setChecked(true);
             useAuthentication.setChecked(false);
             authParams.setVisibility(View.GONE);