Remove unneeded GSE catching

This commit is contained in:
str4d
2014-03-01 02:25:09 +00:00
parent a22e27c0de
commit 2fccdf3d34
3 changed files with 1 additions and 16 deletions

View File

@ -1,6 +1,5 @@
package i2p.bote;
import java.security.GeneralSecurityException;
import java.util.List;
import i2p.bote.email.Email;
@ -79,9 +78,6 @@ public class EmailListFragment extends ListFragment implements
} catch (PasswordException e) {
// TODO: Get password from user and retry
getActivity().setTitle("ERROR: " + e.getMessage());
} catch (GeneralSecurityException e) {
// TODO: Handle properly
getActivity().setTitle("ERROR: " + e.getMessage());
}
getLoaderManager().initLoader(EMAIL_LIST_LOADER, null, this);
}
@ -153,9 +149,6 @@ public class EmailListFragment extends ListFragment implements
} catch (PasswordException e) {
// TODO: Get password from user and retry
getActivity().setTitle("ERROR: " + e.getMessage());
} catch (GeneralSecurityException e) {
// TODO: Handle properly
getActivity().setTitle("ERROR: " + e.getMessage());
}
if (isResumed()) {
@ -173,9 +166,6 @@ public class EmailListFragment extends ListFragment implements
} catch (PasswordException e) {
// TODO: Get password from user and retry
getActivity().setTitle("ERROR: " + e.getMessage());
} catch (GeneralSecurityException e) {
// TODO: Handle properly
getActivity().setTitle("ERROR: " + e.getMessage());
}
}
}

View File

@ -1,6 +1,5 @@
package i2p.bote;
import java.security.GeneralSecurityException;
import java.util.List;
import i2p.bote.fileencryption.PasswordException;
@ -42,9 +41,6 @@ public class FolderListAdapter extends ArrayAdapter<EmailFolder> {
} catch (PasswordException e) {
// TODO: Get password from user and retry
name.setText("ERROR: " + e.getMessage());
} catch (GeneralSecurityException e) {
// TODO: Handle properly
name.setText("ERROR: " + e.getMessage());
}
return v;

View File

@ -21,9 +21,8 @@ public class BoteHelper extends GeneralHelper {
* @param showNew Should the name contain the number of new messages?
* @return The name of the folder.
* @throws PasswordException
* @throws GeneralSecurityException
*/
public static String getFolderDisplayName(Context ctx, EmailFolder folder, boolean showNew) throws PasswordException, GeneralSecurityException {
public static String getFolderDisplayName(Context ctx, EmailFolder folder, boolean showNew) throws PasswordException {
String displayName = "";
String name = folder.getName();