Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AnaelMobilia committed Dec 5, 2024
1 parent 5f70ce1 commit 94613f4
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions app/src/main/java/com/pcinpact/utils/Constantes.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ public class Constantes {
* Locale à utiliser pour les timestamp
*/
public static final Locale LOCALE = Locale.FRANCE;
/**
* Encodage des pages.
*/
public static final String X_NEXT_ENCODAGE = "UTF-8";
/**
* URL de téléchargement Next.
*/
Expand All @@ -70,19 +66,11 @@ public class Constantes {
*/
public static final String NEXT_TYPE_ARTICLES_STANDARD = "post";
public static final String NEXT_TYPE_ARTICLES_BRIEF = "brief_article";
/**
* URL de téléchargement des commentaires.
*/
// Dans le contenu de l'article
/**
* URL d'authentification.
*/
public static final String NEXT_URL_PRE_AUTH = NEXT_URL + "login/";
public static final String NEXT_URL_AUTH = NEXT_URL + "wp-admin/admin-ajax.php?action=ajaxlogin";
/**
* URL des smileys
*/
public static final String X_CDN_SMILEY_URL = "https://cdn2.nextinpact.com/smileys/";

/**
* Timeout pour les téléchargements (en ms) - default = 10s.
Expand Down Expand Up @@ -296,19 +284,4 @@ public static void setOptionBoolean(final Context unContext, final int idOption,
editor.putBoolean(unContext.getString(idOption), valeurOption);
editor.apply();
}

/**
* Enregistre un int dans les préférences.
*
* @param unContext context d'application
* @param idOption id de l'option
* @param valeurOption valeur à enregistrer
*/
public static void setOptionInt(final Context unContext, final int idOption, final String valeurOption) {
SharedPreferences mesPrefs = PreferenceManager.getDefaultSharedPreferences(unContext);

Editor editor = mesPrefs.edit();
editor.putString(unContext.getString(idOption), valeurOption);
editor.apply();
}
}

0 comments on commit 94613f4

Please sign in to comment.