# HG changeset patch # User Da Risk # Date 1426458061 -3600 # Node ID ba37a871aac23c6fc176197b40c5d94f1606f32b # Parent 545219ce42c7f2cf8c789f4349fb6b160571ec39 Fix some lint errors diff -r 545219ce42c7 -r ba37a871aac2 app/build.gradle --- a/app/build.gradle Sun Mar 15 22:11:18 2015 +0100 +++ b/app/build.gradle Sun Mar 15 23:21:01 2015 +0100 @@ -22,7 +22,7 @@ lintOptions { abortOnError true textReport true - disable("MissingTranslation") + disable "MissingTranslation", "InvalidPackage" } } diff -r 545219ce42c7 -r ba37a871aac2 app/src/main/aidl/com/beem/project/beem/service/aidl/IPrivacyListManager.aidl --- a/app/src/main/aidl/com/beem/project/beem/service/aidl/IPrivacyListManager.aidl Sun Mar 15 22:11:18 2015 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,66 +0,0 @@ -/* - BEEM is a videoconference application on the Android Platform. - - Copyright (C) 2009 by Frederic-Charles Barthelery, - Jean-Manuel Da Silva, - Nikita Kozlov, - Philippe Lago, - Jean Baptiste Vergely, - Vincent Veronis. - - This file is part of BEEM. - - BEEM is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - BEEM is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with BEEM. If not, see . - - Please send bug reports with examples or suggestions to - contact@beem-project.com or http://dev.beem-project.com/ - - Epitech, hereby disclaims all copyright interest in the program "Beem" - written by Frederic-Charles Barthelery, - Jean-Manuel Da Silva, - Nikita Kozlov, - Philippe Lago, - Jean Baptiste Vergely, - Vincent Veronis. - - Nicolas Sadirac, November 26, 2009 - President of Epitech. - - Flavien Astraud, November 26, 2009 - Head of the EIP Laboratory. - -*/ -package com.beem.project.beem.service.aidl; - -import com.beem.project.beem.service.PrivacyListItem; -import com.beem.project.beem.service.aidl.IPrivacyListListener; - -interface IPrivacyListManager { - void createPrivacyList(in String listName, in List items); - void removePrivacyList(in String listName); - void editPrivacyList(in String listName, in List items); - String getActivePrivacyList(); - String getDefaultPrivacyList(); - void setActivePrivacyList(in String listName); - void setDefaultPrivacyList(in String listName); - void declineActivePrivacyList(); - void declineDefaultPrivacyList(); - List getPrivacyLists(); - void blockUser(in String listName, in String jid); - List getBlockedUsersByList(in String listName); - List getBlockedGroupsByList(in String listName); - void addPrivacyListListener(in IPrivacyListListener listener); - void removePrivacyListListener(in IPrivacyListListener listener); -} - diff -r 545219ce42c7 -r ba37a871aac2 app/src/main/aidl/com/beem/project/beem/service/aidl/IXmppConnection.aidl --- a/app/src/main/aidl/com/beem/project/beem/service/aidl/IXmppConnection.aidl Sun Mar 15 22:11:18 2015 +0100 +++ b/app/src/main/aidl/com/beem/project/beem/service/aidl/IXmppConnection.aidl Sun Mar 15 23:21:01 2015 +0100 @@ -46,7 +46,6 @@ import com.beem.project.beem.service.aidl.IRoster; import com.beem.project.beem.service.aidl.IBeemConnectionListener; import com.beem.project.beem.service.aidl.IChatManager; -import com.beem.project.beem.service.aidl.IPrivacyListManager; interface IXmppConnection { @@ -73,7 +72,5 @@ void changeStatus(in int status, in String msg); - IPrivacyListManager getPrivacyListManager(); - String getErrorMessage(); } diff -r 545219ce42c7 -r ba37a871aac2 app/src/main/aidl/com/beem/project/beem/service/aidl/IXmppFacade.aidl --- a/app/src/main/aidl/com/beem/project/beem/service/aidl/IXmppFacade.aidl Sun Mar 15 22:11:18 2015 +0100 +++ b/app/src/main/aidl/com/beem/project/beem/service/aidl/IXmppFacade.aidl Sun Mar 15 23:21:01 2015 +0100 @@ -46,7 +46,6 @@ import com.beem.project.beem.service.aidl.IXmppConnection; import com.beem.project.beem.service.aidl.IRoster; import com.beem.project.beem.service.aidl.IChatManager; -import com.beem.project.beem.service.aidl.IPrivacyListManager; import com.beem.project.beem.service.PresenceAdapter; import com.beem.project.beem.service.UserInfo; @@ -108,6 +107,4 @@ * @return null if not connected */ UserInfo getUserInfo(); - - IPrivacyListManager getPrivacyListManager(); } diff -r 545219ce42c7 -r ba37a871aac2 app/src/main/java/com/beem/project/beem/service/PrivacyListManagerAdapter.java --- a/app/src/main/java/com/beem/project/beem/service/PrivacyListManagerAdapter.java Sun Mar 15 22:11:18 2015 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,358 +0,0 @@ -/* - BEEM is a videoconference application on the Android Platform. - - Copyright (C) 2009 by Frederic-Charles Barthelery, - Jean-Manuel Da Silva, - Nikita Kozlov, - Philippe Lago, - Jean Baptiste Vergely, - Vincent Veronis. - - This file is part of BEEM. - - BEEM is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - BEEM is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with BEEM. If not, see . - - Please send bug reports with examples or suggestions to - contact@beem-project.com or http://dev.beem-project.com/ - - Epitech, hereby disclaims all copyright interest in the program "Beem" - written by Frederic-Charles Barthelery, - Jean-Manuel Da Silva, - Nikita Kozlov, - Philippe Lago, - Jean Baptiste Vergely, - Vincent Veronis. - - Nicolas Sadirac, November 26, 2009 - President of Epitech. - - Flavien Astraud, November 26, 2009 - Head of the EIP Laboratory. - -*/ -package com.beem.project.beem.service; - -import java.util.ArrayList; -import java.util.List; - -import org.jivesoftware.smack.PrivacyList; -import org.jivesoftware.smack.PrivacyListListener; -import org.jivesoftware.smack.PrivacyListManager; -import org.jivesoftware.smack.XMPPException; -import org.jivesoftware.smack.packet.PrivacyItem; -import org.jivesoftware.smack.packet.PrivacyItem.PrivacyRule; - -import android.os.RemoteCallbackList; -import android.os.RemoteException; -import android.util.Log; - -import com.beem.project.beem.service.aidl.IPrivacyListListener; -import com.beem.project.beem.service.aidl.IPrivacyListManager; - -/** - * An adapter for the Smack's PrivacyListManager. - * @author Jean-Manuel Da Silva - */ -public class PrivacyListManagerAdapter extends IPrivacyListManager.Stub { - - /** Class's Tag. */ - public static final String TAG = "PrivacyListManagerAdapter"; - - private final PrivacyListManager mPrivacyListManager; - - private final RemoteCallbackList mPrivacyListListeners = - new RemoteCallbackList(); - private final PrivacyListListenerAdapter mPrivacyListListener = new PrivacyListListenerAdapter(); - - /** - * Constructor. - * @param privacyListManager the privacy list manager - */ - public PrivacyListManagerAdapter(final PrivacyListManager privacyListManager) { - mPrivacyListManager = privacyListManager; - mPrivacyListManager.addListener(mPrivacyListListener); - } - - /* (non-Javadoc) - * @see com.beem.project.beem.service.aidl.IPrivacyListManager#blockUser(java.lang.String, java.lang.String) - */ - @Override - public void blockUser(String listName, String jid) throws RemoteException { - } - - /* (non-Javadoc) - * @see com.beem.project.beem.service.aidl.IPrivacyListManager#createPrivacyList(java.lang.String, java.util.List) - */ - @Override - public void createPrivacyList(String listName, List items) throws RemoteException { - Log.d(TAG, "BEGIN createPrivacyList."); - try { - List privacyItems = new ArrayList(); - - PrivacyItem item = new PrivacyItem(PrivacyItem.Type.subscription.name(), true, 2); - item.setValue(PrivacyRule.SUBSCRIPTION_BOTH); - privacyItems.add(item); - - mPrivacyListManager.createPrivacyList(listName, privacyItems); - } catch (XMPPException e) { - Log.e(TAG, e.getMessage()); - } - Log.d(TAG, "END createPrivacyList."); - } - - /* (non-Javadoc) - * @see com.beem.project.beem.service.aidl.IPrivacyListManager#declineActivePrivacyList() - */ - @Override - public void declineActivePrivacyList() throws RemoteException { - try { - mPrivacyListManager.declineActiveList(); - } catch (XMPPException e) { - Log.e(TAG, e.getMessage()); - } - } - - /* (non-Javadoc) - * @see com.beem.project.beem.service.aidl.IPrivacyListManager#declineDefaultPrivacyList() - */ - @Override - public void declineDefaultPrivacyList() throws RemoteException { - try { - mPrivacyListManager.declineDefaultList(); - } catch (XMPPException e) { - Log.e(TAG, e.getMessage()); - } - } - - /* (non-Javadoc) - * @see com.beem.project.beem.service.aidl.IPrivacyListManager#editPrivacyList(java.lang.String, java.util.List) - */ - @Override - public void editPrivacyList(String listName, List items) throws RemoteException { - Log.d(TAG, "BEGIN editPrivacyList."); - try { - mPrivacyListManager.updatePrivacyList(listName, tranformPrivacyListItemsToPrivacyItems(items)); - } catch (XMPPException e) { - Log.e(TAG, e.getMessage()); - } - Log.d(TAG, "END editPrivacyList."); - } - - /* (non-Javadoc) - * @see com.beem.project.beem.service.aidl.IPrivacyListManager#getActivePrivacyList() - */ - @Override - public String getActivePrivacyList() throws RemoteException { - try { - PrivacyList activePrivacyList = mPrivacyListManager.getActiveList(); - return activePrivacyList.toString(); - } catch (XMPPException e) { - Log.e(TAG, e.getMessage()); - } - return null; - } - - /* (non-Javadoc) - * @see com.beem.project.beem.service.aidl.IPrivacyListManager#getBlockedGroupsByList(java.lang.String) - */ - @Override - public List getBlockedGroupsByList(String listName) throws RemoteException { - List blockedGroups = new ArrayList(); - try { - PrivacyList pL = mPrivacyListManager.getPrivacyList(listName); - for (PrivacyItem pI : pL.getItems()) { - if (pI.getType().equals(PrivacyItem.Type.group) && !pI.isAllow()) - blockedGroups.add(pI.getValue()); - } - } catch (XMPPException e) { - Log.e(TAG, e.getMessage()); - } - return blockedGroups; - } - - /* (non-Javadoc) - * @see com.beem.project.beem.service.aidl.IPrivacyListManager#getBlockedUsersByList(java.lang.String) - */ - @Override - public List getBlockedUsersByList(String listName) throws RemoteException { - List blockedUsers = new ArrayList(); - try { - PrivacyList pL = mPrivacyListManager.getPrivacyList(listName); - for (PrivacyItem pI : pL.getItems()) { - if (pI.getType().equals(PrivacyItem.Type.jid) && !pI.isAllow()) - blockedUsers.add(pI.getValue()); - } - } catch (XMPPException e) { - Log.e(TAG, e.getMessage()); - } - return blockedUsers; - } - - /* (non-Javadoc) - * @see com.beem.project.beem.service.aidl.IPrivacyListManager#getDefaultPrivacyList() - */ - @Override - public String getDefaultPrivacyList() throws RemoteException { - try { - PrivacyList defaultPrivacyList = mPrivacyListManager.getDefaultList(); - return defaultPrivacyList.toString(); - } catch (XMPPException e) { - Log.e(TAG, e.getMessage()); - } - return null; - } - - /* (non-Javadoc) - * @see com.beem.project.beem.service.aidl.IPrivacyListManager#removePrivacyList(java.lang.String) - */ - @Override - public void removePrivacyList(String listName) throws RemoteException { - try { - mPrivacyListManager.deletePrivacyList(listName); - } catch (XMPPException e) { - Log.e(TAG, e.getMessage()); - } - } - - /* (non-Javadoc) - * @see com.beem.project.beem.service.aidl.IPrivacyListManager#setActivePrivacyList(java.lang.String) - */ - @Override - public void setActivePrivacyList(String listName) throws RemoteException { - try { - mPrivacyListManager.setActiveListName(listName); - } catch (XMPPException e) { - Log.e(TAG, e.getMessage()); - } - } - - /* (non-Javadoc) - * @see com.beem.project.beem.service.aidl.IPrivacyListManager#setDefaultPrivacyList(java.lang.String) - */ - @Override - public void setDefaultPrivacyList(String listName) throws RemoteException { - try { - mPrivacyListManager.setDefaultListName(listName); - } catch (XMPPException e) { - Log.e(TAG, e.getMessage()); - } - } - - /** - * From a List of PrivacyListItem get a List of PrivacyItem. - * @param items The List of PrivacyListItem. - * @return A list of PrivacyItem. - */ - private List tranformPrivacyListItemsToPrivacyItems(List items) { - List rItems = new ArrayList(); - PrivacyItem.Type[] itemTypes = PrivacyItem.Type.values(); - - for (int i = 0; i < items.size(); i++) { - rItems.add(new PrivacyItem(itemTypes[items.get(i).getType()].name(), false, i)); - } - - return rItems; - } - - /** - * From a List of PrivacyItem get a List of PrivacyListItem. - * @param items The List of PrivacyItem. - * @return A list of PrivacyListItem. - */ - private List tranformPrivacyItemsToPrivacyListItems(List items) { - List rItems = new ArrayList(); - - for (int i = 0; i < items.size(); i++) { - rItems.add(new PrivacyListItem(items.get(i).getType().ordinal(), items.get(i).getValue())); - } - return rItems; - } - - /** - * An adapter for the Smack's PrivacyListListener. - * @author Jean-Manuel Da Silva - */ - private class PrivacyListListenerAdapter implements PrivacyListListener { - /** - * Constructor. - */ - public PrivacyListListenerAdapter() { } - - @Override - public void setPrivacyList(final String listName, final List listItem) { - int i = mPrivacyListListeners.beginBroadcast(); - while (i > 0) { - i--; - try { - mPrivacyListListeners.getBroadcastItem(i).setPrivacyList(listName, - tranformPrivacyItemsToPrivacyListItems(listItem)); - } catch (RemoteException e) { - Log.w(TAG, e.getMessage()); - } - } - mPrivacyListListeners.finishBroadcast(); - } - - @Override - public void updatedPrivacyList(final String listName) { - Log.d(TAG, "BEGIN updatedPrivacyList."); - int i = mPrivacyListListeners.beginBroadcast(); - while (i > 0) { - i--; - try { - mPrivacyListListeners.getBroadcastItem(i).updatedPrivacyList(listName); - } catch (RemoteException e) { - Log.w(TAG, e.getMessage()); - } - } - mPrivacyListListeners.finishBroadcast(); - Log.d(TAG, "END updatedPrivacyList."); - } - } - - @Override - public void addPrivacyListListener(IPrivacyListListener listener) throws RemoteException { - if (listener != null) - mPrivacyListListeners.register(listener); - } - - @Override - public void removePrivacyListListener(IPrivacyListListener listener) throws RemoteException { - if (listener != null) - mPrivacyListListeners.unregister(listener); - } - - /* (non-Javadoc) - * @see com.beem.project.beem.service.aidl.IPrivacyListManager#getPrivacyLists() - */ - @Override - public List getPrivacyLists() throws RemoteException { - Log.d(TAG, "BEGIN getPrivacyLists."); - List res = new ArrayList(); - try { - PrivacyList[] registeredPrivacyLists = mPrivacyListManager.getPrivacyLists(); - Log.d(TAG, "> registeredPrivacyLists size: " + registeredPrivacyLists.length); - if (registeredPrivacyLists.length > 0) { - for (int i = 0; i < registeredPrivacyLists.length; i++) { - res.add(registeredPrivacyLists[i].toString()); - Log.d(TAG, "> " + res.get(i) + " added."); - } - } - } catch (XMPPException e) { - Log.e(TAG, e.getMessage()); - } - Log.d(TAG, "END getPrivacyLists."); - return res; - } -} diff -r 545219ce42c7 -r ba37a871aac2 app/src/main/java/com/beem/project/beem/service/XmppConnectionAdapter.java --- a/app/src/main/java/com/beem/project/beem/service/XmppConnectionAdapter.java Sun Mar 15 22:11:18 2015 +0100 +++ b/app/src/main/java/com/beem/project/beem/service/XmppConnectionAdapter.java Sun Mar 15 23:21:01 2015 +0100 @@ -114,7 +114,6 @@ private int mPreviousPriority; private int mPreviousMode; private String mPreviousStatus; - private PrivacyListManagerAdapter mPrivacyListManager; private ChatStateManager mChatStateManager; private final BeemService mService; private BeemApplication mApplication; @@ -253,9 +252,6 @@ discoverServerFeatures(); mChatManager = new BeemChatManager(mAdaptee.getChatManager(), mService, mAdaptee.getRoster()); - //nikita: I commented this line because of the logs provided in http://www.beem-project.com/issues/321 - //Also, since the privacylistmanager isn't finished and used, it will be safer to not initialize it - //mPrivacyListManager = new PrivacyListManagerAdapter(PrivacyListManager.getInstanceFor(mAdaptee)); mService.initJingle(mAdaptee); mApplication.setConnected(true); @@ -446,21 +442,6 @@ mRemoteConnListeners.unregister(listen); } - /** - * PrivacyListManagerAdapter mutator. - * @param privacyListManager the privacy list manager - */ - public void setPrivacyListManager(PrivacyListManagerAdapter privacyListManager) { - this.mPrivacyListManager = privacyListManager; - } - - /** - * PrivacyListManagerAdapter accessor. - * @return the mPrivacyList - */ - public PrivacyListManagerAdapter getPrivacyListManager() { - return mPrivacyListManager; - } /** * {@inheritDoc} diff -r 545219ce42c7 -r ba37a871aac2 app/src/main/java/com/beem/project/beem/service/XmppFacade.java --- a/app/src/main/java/com/beem/project/beem/service/XmppFacade.java Sun Mar 15 22:11:18 2015 +0100 +++ b/app/src/main/java/com/beem/project/beem/service/XmppFacade.java Sun Mar 15 23:21:01 2015 +0100 @@ -48,7 +48,6 @@ import com.beem.project.beem.BeemService; import com.beem.project.beem.service.aidl.IChatManager; -import com.beem.project.beem.service.aidl.IPrivacyListManager; import com.beem.project.beem.service.aidl.IRoster; import com.beem.project.beem.service.aidl.IXmppConnection; import com.beem.project.beem.service.aidl.IXmppFacade; @@ -137,15 +136,6 @@ return mConnexion.getRoster(); } - /** - * {@inheritDoc} - */ - @Override - public IPrivacyListManager getPrivacyListManager() { - initConnection(); - return mConnexion.getPrivacyListManager(); - } - @Override public void sendPresencePacket(PresenceAdapter presence) throws RemoteException { initConnection(); diff -r 545219ce42c7 -r ba37a871aac2 app/src/main/java/com/beem/project/beem/ui/dialogs/builders/DeleteContact.java --- a/app/src/main/java/com/beem/project/beem/ui/dialogs/builders/DeleteContact.java Sun Mar 15 22:11:18 2015 +0100 +++ b/app/src/main/java/com/beem/project/beem/ui/dialogs/builders/DeleteContact.java Sun Mar 15 23:21:01 2015 +0100 @@ -52,6 +52,7 @@ import com.beem.project.beem.R; import com.beem.project.beem.service.Contact; import com.beem.project.beem.service.aidl.IRoster; +import com.google.android.apps.iosched.util.LogUtils; /** * Use this builder to build a dialog which allows you to delete a contact from a specific roster. @@ -59,7 +60,7 @@ */ public class DeleteContact extends AlertDialog.Builder { - private static final String TAG = "Dialogs.Builders > DeleteContact"; + private static final String TAG = LogUtils.makeLogTag(DeleteContact.class); private IRoster mRoster; private Contact mContact; diff -r 545219ce42c7 -r ba37a871aac2 app/src/main/java/com/beem/project/beem/ui/dialogs/builders/DeletePrivacyList.java --- a/app/src/main/java/com/beem/project/beem/ui/dialogs/builders/DeletePrivacyList.java Sun Mar 15 22:11:18 2015 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,107 +0,0 @@ -/* - BEEM is a videoconference application on the Android Platform. - - Copyright (C) 2009 by Frederic-Charles Barthelery, - Jean-Manuel Da Silva, - Nikita Kozlov, - Philippe Lago, - Jean Baptiste Vergely, - Vincent Veronis. - - This file is part of BEEM. - - BEEM is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - BEEM is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with BEEM. If not, see . - - Please send bug reports with examples or suggestions to - contact@beem-project.com or http://dev.beem-project.com/ - - Epitech, hereby disclaims all copyright interest in the program "Beem" - written by Frederic-Charles Barthelery, - Jean-Manuel Da Silva, - Nikita Kozlov, - Philippe Lago, - Jean Baptiste Vergely, - Vincent Veronis. - - Nicolas Sadirac, November 26, 2009 - President of Epitech. - - Flavien Astraud, November 26, 2009 - Head of the EIP Laboratory. - -*/ -package com.beem.project.beem.ui.dialogs.builders; - -import android.app.AlertDialog; -import android.content.Context; -import android.content.DialogInterface; -import android.os.RemoteException; -import android.util.Log; - -import com.beem.project.beem.R; -import com.beem.project.beem.service.aidl.IPrivacyListManager; - -/** - * Use this builder to build a dialog which allows you to delete a privacy list. - * @author Jean-Manuel Da Silva - */ -public class DeletePrivacyList extends AlertDialog.Builder { - - private static final String TAG = "Dialogs.Builders > DeletePrivacyList"; - - private final IPrivacyListManager mPrivacyListManager; - private final String mPrivacyListName; - - /** - * Constructor. - * @param context context activity. - * @param privacyListManager the privacy list manager managing the privacy list you want to delete. - * @param privacyListName the name of the privacy list you want to delete. - */ - public DeletePrivacyList(final Context context, final IPrivacyListManager privacyListManager, - final String privacyListName) { - super(context); - - mPrivacyListManager = privacyListManager; - mPrivacyListName = privacyListName; - - setMessage(context.getString(R.string.privacy_list_delete_dialog_msg, privacyListName)); - DialogClickListener dl = new DialogClickListener(); - setPositiveButton(R.string.privacy_list_delete_dialog_yes, dl); - setNegativeButton(R.string.privacy_list_delete_dialog_no, dl); - } - - /** - * Event click listener. - */ - private class DialogClickListener implements DialogInterface.OnClickListener { - - /** - * Constructor. - */ - public DialogClickListener() { - } - - @Override - public void onClick(final DialogInterface dialog, final int which) { - if (which == DialogInterface.BUTTON_POSITIVE) { - try { - mPrivacyListManager.removePrivacyList(mPrivacyListName); - } catch (RemoteException e) { - Log.e(TAG, e.getMessage()); - } - } - } - } -} diff -r 545219ce42c7 -r ba37a871aac2 app/src/main/java/com/beem/project/beem/ui/dialogs/builders/ResendSubscription.java --- a/app/src/main/java/com/beem/project/beem/ui/dialogs/builders/ResendSubscription.java Sun Mar 15 22:11:18 2015 +0100 +++ b/app/src/main/java/com/beem/project/beem/ui/dialogs/builders/ResendSubscription.java Sun Mar 15 23:21:01 2015 +0100 @@ -43,6 +43,9 @@ */ package com.beem.project.beem.ui.dialogs.builders; +import static com.google.android.apps.iosched.util.LogUtils.makeLogTag; + +import com.google.android.apps.iosched.util.LogUtils; import org.jivesoftware.smack.packet.Presence; import android.app.AlertDialog; @@ -63,7 +66,7 @@ */ public class ResendSubscription extends AlertDialog.Builder { - private static final String TAG = "Dialogs.Builders > ResendSubscription"; + private static final String TAG = makeLogTag(ResendSubscription.class); private Context mContext; private IXmppFacade mXmppFacade; diff -r 545219ce42c7 -r ba37a871aac2 app/src/main/res/values-de/strings.xml --- a/app/src/main/res/values-de/strings.xml Sun Mar 15 22:11:18 2015 +0100 +++ b/app/src/main/res/values-de/strings.xml Sun Mar 15 23:21:01 2015 +0100 @@ -14,16 +14,8 @@ Manuelle Konfiguration - -Jabber ID - - -Verbinden... - Benutze Beem Service -Beem Service erstellt -Beem Service verworfen Chatten @@ -40,7 +32,6 @@ Kontakt hinzugefügt Fehler, Benutzer nicht hinzugefügt Fehler bei der Anmeldung -Mangelhafte Form Kontakt existiert bereits @@ -49,12 +40,7 @@ Meine persönliche Nachricht Kontaktliste öffnen -Kontakt hinzufügen -Beem Project -Konto erstellen -Konto bearbeiten Aktualisiere Status -Nichts zu ändern Mein Avatar Wähle Avatar Foto machen @@ -64,8 +50,6 @@ -Benutzername bearbeiten -Passwort bearbeiten Proxy Benutze einen Proxyserver Anmeldung über einen Proxyserver @@ -94,7 +78,6 @@ Check this option to hide unconnected buddies Benutzername (JID) -beem@beem-project.com Passwort Server Port @@ -128,8 +111,6 @@ Benutze kompakte Chatfenster Chronik Aktivieren, um Unterhaltungen auf die Speicherkarte zu speichern -Die Speicherkarte muss eingehängt und beschreibbar sein, um die Chronik zu aktivieren -Aktiviere Nachrichtenchronik Chat Chronik, Layout Größe ... Chronik Pfad @@ -145,9 +126,6 @@ %s will dich zu seiner/ihrer Kontaktliste hinzufügen. Willst du ihn/sie authorisieren? Kontakt authorisieren? - -Du hast eine neue Nachricht - BEEM: Die Verbindung wurde getrennt @@ -156,25 +134,12 @@ Authorisiere %s dich zu kontaktieren. -Beem - Anmeldung Beem - Einstellungen -Beem - Einstellungen bearbeiten Beem - Konto erstellen -Beem - Konto erstellen Beem - Kontakte -Beem - Kontaktliste Beem - Benutzerinformation - -Dieses Konto erstellen -Dieses Konto erstellen und benutzen - -Benutzername -Passwort -Anmeldung - Fehler -Schließen -Konto erstellen Einstellungen Über Beem %s - Über @@ -183,13 +148,8 @@ http://www.beem-project.com ! Schließen -Einstellungen -Anmelden Verbinden. Bitte warten... -Unfortunately, an error occured.\n\nError -detail:\n%s Anmelden -Keine Internetverbindung gefunden Konfiguration der Einstellungen im Menü @@ -227,16 +187,10 @@ Willkommen bei BEEM.nnDu hast noch kein XMPP (Jabber) Konto konfiguriert. Wähle eine der folgenden Optionen: -Bitte trage die Zugangsdaten für dein vorhandenes Konto ein Ich habe bereits ein Konto, das ich benutzen will Ich möchte ein neues Konto registrieren -Konto erstellen - Anweisungen -Konto erstellen - Fehler -Einstellungen ändern -Schließen -Das Konto %s wurde erfolgreich erstellt Mangelhafte Jabber ID Passwörter stimmen nicht überein. Benutzername diff -r 545219ce42c7 -r ba37a871aac2 app/src/main/res/values-es/strings.xml --- a/app/src/main/res/values-es/strings.xml Sun Mar 15 22:11:18 2015 +0100 +++ b/app/src/main/res/values-es/strings.xml Sun Mar 15 23:21:01 2015 +0100 @@ -14,16 +14,8 @@ Configuración manual - -Jabber ID - - -Conectando... - Usar el servicio Beem -Servicio Beem creado -Servicio Beem suprimido Charla @@ -40,7 +32,6 @@ Contacto añadido Error al añadir contacto Error en el login -Formulario incorrecto El contacto ya existe @@ -49,12 +40,7 @@ Mi mensaje personal Abrir lista de contactos -Añadir contacto -Proyecto Beem -Crear cuenta -Editar cuenta Actualizando estado -Nada que cambiar Mi avatar Escoja su avatar Tomar una foto @@ -64,8 +50,6 @@ -Editar su usuario -Editar su contraseña Proxy Usar un servidor proxy Iniciar a través de un servidor proxy @@ -94,7 +78,6 @@ Check this option to hide unconnected buddies Nombre de usuario (JID) -beem@beem-project.com Contraseña Servidor Puerto @@ -128,8 +111,6 @@ Establecer las ventanas de charla en modo compacto Historial Tilda esto para guardar las conversaciones en la tarjeta SD -Se necesita una tarjeta SD montada y escribible para habilitar el historial -Habilitar historial de mensajes Charla Historial, tamaño de la distribución visual... Ruta al historial @@ -145,9 +126,6 @@ %s desea agregarlo/a a su lista de contactos. ¿Desea autorizarlo/a ? ¿Autorizar contacto? - -Tienes un nuevo mensaje - BEEM: Ha sido desconectado @@ -156,25 +134,12 @@ Autorice a %s para que lo contacte. -Beem - Actividad inicio Beem - Configuración -Beem - Actividad editar configuración Beem - Crear una cuenta -Beem - Actividad creación cuenta Beem - Contactos -Beem - Actividad lista contactos Beem - Información de usuario - -Crear esta cuenta -Crear y usar esta cuenta - -Usuario -Contraseña -Inicio sesión - Error -Cerrar -Crear una cuenta Configuración Acerca de Beem %s - Acerca de @@ -183,13 +148,8 @@ http://www.beem-project.com ! Cerrar -Configuración -Inicio Conectando. Espere por favor ... -Unfortunately, an error occured.\n\nError -detail:\n%s Iniciar sesión -No se detecto una conexión a internet Configuración de parametros en menú @@ -227,16 +187,10 @@ Bienvenido a BEEM.\n\nTodavía no ha configurado su cuenta XMPP (Jabber).\nEscoja una de las siguientes opciones: -Por favor, complete con la información de su cuenta existente Ya tengo una cuenta y deseo utilizarla Deseo registrar una nueva cuenta -Crear cuenta - Instrucciones -Crear cuenta - Error -Cambiar mi configuración -Cerrar -la cuenta %s fue creada correctamente JabberID incorrecto La clave no coincide Usuario diff -r 545219ce42c7 -r ba37a871aac2 app/src/main/res/values-it/strings.xml --- a/app/src/main/res/values-it/strings.xml Sun Mar 15 22:11:18 2015 +0100 +++ b/app/src/main/res/values-it/strings.xml Sun Mar 15 23:21:01 2015 +0100 @@ -14,16 +14,8 @@ Configurazione Manuale - - Jabber ID - - - Connessione... - Usa il sservizio Beem - Create il servizio Bemm - Rimosso il servizio Beem Chat @@ -40,7 +32,6 @@ Aggiunto contatto Errore Contatto non aggiunto Errore di accesso - Forma errata Contatto già esistente @@ -49,16 +40,9 @@ Messaggio personale Apri lista contatti - Aggiungi un nuovo cotatto - Progetto Beem - Crea un account - Modifica account Aggiornamento stato - Nessun cambiamento - Modifica il tuo username - Modifica la tua password Proxy Usa un server proxy Accedi attraverso un server proxy @@ -87,7 +71,6 @@ Abilita quest\'opzione per nascondere gli amici non connessi Username - beem@beem-project.com Password Server Porta @@ -126,9 +109,6 @@ %s desidera aggiungerti nella sua lista di amicizie. Vuoi autorizzarlo/a? Autorizza amicizia ? - - Hai un nuovo messaggio - BEEM: sei stato disconnesso @@ -137,25 +117,12 @@ Autorizza %s a contattarti. - Beem - Login Activity Beem - Settings - Beem - EditSettings Activity Beem - Create an account - Beem - CreateAccount Activity Beem - Contacts - Beem - ContactList Activity Beem - User Info - - Crea questo account - Crea ed usa questo account - - Username - Password - Accesso - Errore - Chiudi - Crea un account Impostazioni Informazioni su Beem %s - Informazioni @@ -164,13 +131,8 @@ http://www.beem-project.com ! Chiudi - Impostazioni - Accedi Connessione in corso. Attendere... - Purtroppo, si è verificato un errore.\n\nDettagli - errore:\n%s Accedi - Non è stata trovata la connessione internet Impostazioni di configurazione nel menuSettings configuration in menu @@ -205,16 +167,10 @@ Benvenuto su BEEM.\n\nNon hai ancora configurato un account XMPP (Jabber).\nScegli una delle seguenti opzioni : - Si prega di compilare i dati per il vostro account esistente Possiedo già un account che voglio Voglio registrare un nuovo account - Crea un account - Istruzioni - Crea un account - Errore - Cambia le mie impostazioni - Chiudi - account %s è stato creato con successo Errato JabberID Le password non coincidono. Username diff -r 545219ce42c7 -r ba37a871aac2 app/src/main/res/values-nb/strings.xml --- a/app/src/main/res/values-nb/strings.xml Sun Mar 15 22:11:18 2015 +0100 +++ b/app/src/main/res/values-nb/strings.xml Sun Mar 15 23:21:01 2015 +0100 @@ -14,16 +14,8 @@ Manuelt oppsett - -Jabber-ID - - -Kobler til ... - Bruk Beem tjeneste -Beem tjeneste opprettet -Beem tjeneste slettet Prat @@ -40,7 +32,6 @@ Kontakt lagt til Feil ved lagring av kontakt Feil ved innlogging -Feil utfylt Kontakten finnes allerede @@ -49,12 +40,7 @@ Min personlige melding Åpne kontaktlista -Legg til ny kontakt -Beem-prosjektet -Opprett konto -Rediger konto Oppdaterer status -Ingen endringer Mitt personbilde Velg ditt personbilde Ta et bilde @@ -64,8 +50,6 @@ -Rediger brukernavn -Rediger passord Mellomtjener Bruk en mellomtjener Logg inn via en mellomtjener @@ -94,7 +78,6 @@ Check this option to hide unconnected buddies Brukernavn (JID) -beem@beem-project.com Passord Tjener Port @@ -128,8 +111,6 @@ Velg kompakt pratevindu Historikk Aktiver for å lagre meldinger på minnekortet -Du trenger et montert og skrivebart minnekort for å kunne aktivere historikk -Aktiver historikk Prat Historikk, utseende ... Sti til historikk @@ -145,9 +126,6 @@ %s ønsker å legge deg til sin kontaktliste. Godkjenne forespørselen? Godkjenne kontakt? - -Du har en ny melding - BEEM: du har koblet fra @@ -156,25 +134,12 @@ Godkjenn at %s kontakter deg -Beem - Aktivitet innlogging Beem - Innstillinger -Beem - Aktivitet innstillinger Beem - Opprett konto -Beem - Aktivitet opprett konto Beem - Kontakter -Beem - Aktivitet kontaktliste Beem - Brukerinformasjon - -Opprett kontoen -Opprett og bruk kontoen - -Brukernavn -Passord -Feil ved innlogging -Lukk -Opprett konto Innstillinger Om Beem %s - Om @@ -183,13 +148,8 @@ http://www.beem-project.com ! Lukk -Innstillinger -Logg inn Kobler til ... -Unfortunately, an error occured.\n\nError -detail:\n%s Innlogging -Ingen nettforbindelse funnet Innstillinger i menyen @@ -227,16 +187,10 @@ Velkomment til BEEM.nnDu har ikke satt opp en XMPP (Jabber) konto.nVelg et av følgende alternativ : -Fyll inn informasjon for din eksisterende konto Jeg har en konto som jeg ønsker å bruke Jeg ønsker å registrer en ny konto -Opprett en konto - Veiledning -Opprett en konto - Feil -Endre innstillinger -Lukk -Konto %s opprettet Ugyldig JabberID Passordene er ikke like Brukernavn diff -r 545219ce42c7 -r ba37a871aac2 app/src/main/res/values-pt/strings.xml --- a/app/src/main/res/values-pt/strings.xml Sun Mar 15 22:11:18 2015 +0100 +++ b/app/src/main/res/values-pt/strings.xml Sun Mar 15 23:21:01 2015 +0100 @@ -14,16 +14,8 @@ Configuração Manual - - Jabber ID - - - Conectando... - Utilizar Serviço Beem - Serviço Beem Criado - Serviço Beem Destruído Conversa @@ -40,7 +32,6 @@ Contato Adicionado Erro: Contato não adicionado Erro de login - Jabber ID mal formado Contato já existe @@ -49,12 +40,7 @@ Minha mensagem pessoal Abrir lista de contatos - Adicionar contato - Projeto Beem - Criar conta - Editar conta Atualizando status - Nada a alterar Meu avatar Escolha o seu avatar Tirar uma foto @@ -64,8 +50,6 @@ - Editar seu login - Editar sua senha Proxy Usar um servidor de proxy Efetuar login através de um proxy @@ -94,7 +78,6 @@ Marque essa opção para ocultar contatos desconectados Login (JID) - beem@beem-project.com Senha Servidor Porta @@ -128,8 +111,6 @@ Habilita o modo compacto da janela de chat Histórico Marque se você deseja gravar o histórico de conversas no seu cartão SD - Você precisa ter um cartão SD montado e com permissão de escrita para habilitar o histórico - Habilita histórico de mensagens Conversa Histórico, Tamanho do layout ... Caminho do histórico @@ -145,9 +126,6 @@ %s quer te adicionar como contato. Você autoriza? Autorizar contato? - - Você tem uma nova mensagem - BEEM: Você foi desconectado @@ -156,25 +134,12 @@ Autorizar %s para contactar você. - Beem - Atividade de login Beem - Configurações - Beem - Atividade de configurações Beem - Criar uma conta - Beem - Atividade de criar conta Beem - Lista de contatos - Beem - Atividade de lista de contatos Beem - Informações de usuário - - Criar conta - Criar e utilizar conta - - Login - Senha - Login - Erro - Fechar - Criar conta Configurações Sobre Beem %s - Sobre @@ -183,13 +148,8 @@ http://www.beem-project.com ! Fechar - Configurações - Entrar Conectando. Aguarde... - Infelizmente, ocorreu um erro.\n\nDetalhes - do erro:\n%s Login - Conexão de internet não encontrada Configurações incorretas @@ -227,16 +187,10 @@ Bem vindo ao BEEM.\n\nVocê ainda não configurou uma conta XMPP (Jabber).\nEscolha uma das opções : - Por favor, preencha os dados da sua conta Eu já tenho uma conta Quero criar uma conta - Criar conta - Instruções - Criar conta - Erro - Alterar configurações - Fechar - conta %s foi criada com sucesso JabberID mal formado Senha não confere. Login diff -r 545219ce42c7 -r ba37a871aac2 app/src/main/res/values-ru/strings.xml --- a/app/src/main/res/values-ru/strings.xml Sun Mar 15 22:11:18 2015 +0100 +++ b/app/src/main/res/values-ru/strings.xml Sun Mar 15 23:21:01 2015 +0100 @@ -14,16 +14,8 @@ Ручная конфигурация - -Jabber ID - - -Соединение... - Использовать сервис Beem -Сервис Beem создан -Сервис Beem уничтожен Написать @@ -40,7 +32,6 @@ Контакт добавлен Ошибка добавления контакта Ошибка входа - Контакт уже добавлен @@ -49,12 +40,7 @@ Персональное сообщение Открыть список контактов -Добавить новый контакт -О проекте Beem -Создать аккаунт -Изменить аккаунт Обновление статуса... -Ничего не изменилось Мой аватар Выберите свой аватар Снять фото @@ -63,8 +49,6 @@ Нельзя выбрать фото -Имя пользователя -Пароль Прокси Использовать прокси Соединяться через прокси @@ -91,7 +75,6 @@ Скрывать оффлайн-контакты Отметьте, чтобы спрятать контакты, которые не в сети Имя пользователя - Пароль Сервер Порт @@ -125,8 +108,6 @@ Сделать окно диалога компактным История Пометьте для сохранения разговоров на SD карте -Для сохранения истории необходима установленная SD карта с разрешённой записью -Разрешить сохранение истории Диалог История, размер диалога... Путь к истории @@ -142,9 +123,6 @@ %s желает добавить вас в свой контакт-лист. Авторизовать его(-е)? Авторизовать пользователя? - -Пришло новое сообщение - Beem: Соединение разорвано @@ -153,36 +131,19 @@ Авторизовать %s. - Настройки - Создать аккаунт - Контакты - Информация о пользователе - -Создать аккаунт -Создать аккаунт и подключиться - -Имя пользователя -Пароль -Ошибка входа -Закрыть -Создать аккаунт Настройки О программе Beem %s - О программе Закрыть -Настройки -Войти Соединение. Пожалуйста, подождите... -К сожалению, произошла ошибка.\n\nПодробности:\n%s Войти -Интернет соединение не найдено Настройки в меню @@ -216,16 +177,10 @@ Добро пожаловать в Beem.\n\nВы ещё не настроили аккаунт XMPP (Jabber).\nВыберите один из следующих вариантов : - Использовать существующий аккаунт Создать новый аккаунт -Создание учётной записи - Инструкция -Создание учётной записи - Ошибка -Изменить мои настройки -Закрыть -Аккаунт %s успешно создан Неправильный JID Пароли не совпадают Имя пользователя @@ -317,4 +272,4 @@ - \ No newline at end of file + diff -r 545219ce42c7 -r ba37a871aac2 app/src/main/res/values-zh-rCN/strings.xml --- a/app/src/main/res/values-zh-rCN/strings.xml Sun Mar 15 22:11:18 2015 +0100 +++ b/app/src/main/res/values-zh-rCN/strings.xml Sun Mar 15 23:21:01 2015 +0100 @@ -14,16 +14,8 @@ 手动设置 - -Jabber账号 - - -连接中... - 使用Beem服务 -Beem服务已创建 -Beem服务已取消 聊天 @@ -40,7 +32,6 @@ 联系人已成功添加 联系人添加错误 登录错误 -格式错误 联系人已存在 @@ -49,12 +40,7 @@ 我的个人消息 打开联系人列表 -添加心联系人 -Beem项目 -创建账号 -编辑账号 更新状态 -没有东西需要改变 我的头像 选择头像 照相 @@ -64,8 +50,6 @@ -修改用户名 -修改密码 代理 使用代理服务器 通过代理服务器登录 @@ -94,7 +78,6 @@ Check this option to hide unconnected buddies 用户名 -beem@beem-project.com 密码 服务器 端口 @@ -128,8 +111,6 @@ 设定聊天协议 历史记录 保存对话到SD卡 -你需要有已插入设备并可以写入的SD存储来允许历史记录 -允许历史记录 聊天 历史路径 @@ -145,9 +126,6 @@ %s 想要添加你到他/她的好友列表.批准他/她的请求吗? 批准好友请求? - -你有一个新消息 - BEEM:你的连接已断开 @@ -156,25 +134,12 @@ 批准%s联系你 -Beem - 登录中 Beem - 设置 -Beem - 编制设置 Beem - 创建新账号 -Beem - 创建新账号中 Beem - 联系人 -Beem - 联系人列表 Beem - 用户信息 - -创建这个账户 -创建并使用这个账户 - -用户名 -密码 -登录 - 错误 -关闭 -创建一个账号 设置 关于 Beem %s - 关于 @@ -183,13 +148,8 @@ http://www.beem-project.com ! 关闭 -设置 -登录 连接中,请等待... -Unfortunately, an error occured.\n\nError -detail:\n%s 登陆 -没有可用连接 菜单设置配置 @@ -227,16 +187,10 @@ 欢迎使用BEEM.\n\n您还没有设定XMPP (Jabber)账户.请选择下面的选项。\n请选择下面的选项: -请输入您已有账号的信息 我想使用我已有的账号 我想创建一个新账号 -创建新账号 - 向导 -创建新账号 - 错误 -修改设置 -关闭 -账号%s已成功创建 错误的Jabber ID 密码不匹配。 用户名 diff -r 545219ce42c7 -r ba37a871aac2 app/src/main/res/values-zh-rTW/strings.xml --- a/app/src/main/res/values-zh-rTW/strings.xml Sun Mar 15 22:11:18 2015 +0100 +++ b/app/src/main/res/values-zh-rTW/strings.xml Sun Mar 15 23:21:01 2015 +0100 @@ -14,16 +14,8 @@ 手动设置 - -Jabber账号 - - -连接中... - 使用Beem服务 -Beem服务已创建 -Beem服务已取消 聊天 @@ -40,7 +32,6 @@ 联系人已成功添加 联系人添加错误 登录错误 -格式错误 联系人已存在 @@ -49,12 +40,7 @@ 我的个人消息 打开联系人列表 -添加心联系人 -Beem项目 -创建账号 -编辑账号 更新状态 -没有东西需要改变 我的头像 选择头像 照相 @@ -64,8 +50,6 @@ -修改用户名 -修改密码 代理 使用代理服务器 通过代理服务器登录 @@ -94,7 +78,6 @@ Check this option to hide unconnected buddies 用户名 -beem@beem-project.com 密码 服务器 端口 @@ -128,8 +111,6 @@ 设定聊天协议 历史记录 保存对话到SD卡 -你需要有已插入设备并可以写入的SD存储来允许历史记录 -允许历史记录 聊天 历史路径 @@ -145,9 +126,6 @@ %s 想要添加你到他/她的好友列表.批准他/她的请求吗? 批准好友请求? - -你有一个新消息 - BEEM:你的连接已断开 @@ -156,25 +134,12 @@ 批准%s联系你 -Beem - 登录中 Beem - 设置 -Beem - 编制设置 Beem - 创建新账号 -Beem - 创建新账号中 Beem - 联系人 -Beem - 联系人列表 Beem - 用户信息 - -创建这个账户 -创建并使用这个账户 - -用户名 -密码 -登录 - 错误 -关闭 -创建一个账号 设置 关于 Beem %s - 关于 @@ -183,13 +148,8 @@ http://www.beem-project.com ! 关闭 -设置 -登录 连接中,请等待... -Unfortunately, an error occured.\n\nError -detail:\n%s 登陆 -没有可用连接 菜单设置配置 @@ -227,16 +187,10 @@ 欢迎使用BEEM.\n\n您还没有设定XMPP (Jabber)账户.请选择下面的选项。\n请选择下面的选项: -请输入您已有账号的信息 我想使用我已有的账号 我想创建一个新账号 -创建新账号 - 向导 -创建新账号 - 错误 -修改设置 -关闭 -账号%s已成功创建 错误的Jabber ID 密码不匹配。 用户名