Notify users that Bote needs to be connected to check emails

This commit is contained in:
str4d
2014-12-17 02:05:25 +00:00
parent 2e7b56cf48
commit ec8215b34b
2 changed files with 5 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ import android.widget.FrameLayout;
import android.widget.ImageButton;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import net.i2p.I2PAppContext;
import net.i2p.util.Log;
@@ -587,7 +588,9 @@ public class EmailListFragment extends AuthenticatedListFragment implements
// TODO Auto-generated catch block
e.printStackTrace();
}
} else
} else {
mSwipeRefreshLayout.setRefreshing(false);
Toast.makeText(getActivity(), R.string.bote_needs_to_be_connected, Toast.LENGTH_SHORT).show();
}
}
}

View File

@@ -44,6 +44,7 @@
<string name="action_settings">Settings</string>
<string name="check_email">Check email</string>
<string name="checking_email">Checking email&#8230;</string>
<string name="bote_needs_to_be_connected">Bote needs to be connected to the network</string>
<!-- Argument is a number -->
<plurals name="incomplete_emails">
<item quantity="one">One incomplete email</item>