Notify users that Bote needs to be connected to check emails
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
<string name="action_settings">Settings</string>
|
||||
<string name="check_email">Check email</string>
|
||||
<string name="checking_email">Checking email…</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>
|
||||
|
||||
Reference in New Issue
Block a user