mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
SPARK-856 Avatars in contact list are too small
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@9202 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -479,7 +479,7 @@ public class ContactItem extends JPanel {
|
||||
}
|
||||
else {
|
||||
ImageIcon icon = new ImageIcon(url);
|
||||
icon = GraphicUtils.scale(icon, 16, 16);
|
||||
icon = GraphicUtils.scale(icon, 24, 24);
|
||||
setSideIcon(icon);
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,18 +30,28 @@ public class SettingsManager {
|
||||
|
||||
private static List<PreferenceListener> listeners = new ArrayList<PreferenceListener>();
|
||||
|
||||
private static boolean fileExists = false;
|
||||
|
||||
private SettingsManager() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the LocalPreferences for this agent.
|
||||
* Returns the LocalPreferences for this user.
|
||||
*
|
||||
* @return the LocalPreferences for this agent.
|
||||
* @return the LocalPreferences for this user.
|
||||
*/
|
||||
public static LocalPreferences getLocalPreferences() {
|
||||
if(localPreferences != null){
|
||||
return localPreferences;
|
||||
}
|
||||
|
||||
if (!exists() && localPreferences == null) {
|
||||
if (!fileExists) {
|
||||
fileExists = exists();
|
||||
}
|
||||
|
||||
if (!fileExists && localPreferences == null) {
|
||||
localPreferences = new LocalPreferences();
|
||||
saveSettings();
|
||||
}
|
||||
|
||||
if (localPreferences == null) {
|
||||
@ -50,7 +60,6 @@ public class SettingsManager {
|
||||
localPreferences = load();
|
||||
}
|
||||
|
||||
|
||||
return localPreferences;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user