Remove unneeded GSE catching
This commit is contained in:
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user