diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2012-09-05 19:00:02 +0400 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2012-09-05 19:00:02 +0400 |
| commit | 0020fdf172f65cad4e4c405ebb0bf40a6e5afb4e (patch) | |
| tree | d7482ff9c8a1f36a833efa2260502c165f1b1319 /src/org/fox/ttrss/CommonActivity.java | |
| parent | 48dc7fd846d4178bc8560f72fac2bce1271ee68a (diff) | |
add toast notifications for article mark/publish/setnote
Diffstat (limited to 'src/org/fox/ttrss/CommonActivity.java')
| -rw-r--r-- | src/org/fox/ttrss/CommonActivity.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/org/fox/ttrss/CommonActivity.java b/src/org/fox/ttrss/CommonActivity.java index f0b678ae..d88775b3 100644 --- a/src/org/fox/ttrss/CommonActivity.java +++ b/src/org/fox/ttrss/CommonActivity.java @@ -31,6 +31,16 @@ public class CommonActivity extends FragmentActivity { m_smallScreenMode = smallScreen;
}
+ public void toast(int msgId) {
+ Toast toast = Toast.makeText(CommonActivity.this, msgId, Toast.LENGTH_SHORT);
+ toast.show();
+ }
+
+ public void toast(String msg) {
+ Toast toast = Toast.makeText(CommonActivity.this, msg, Toast.LENGTH_SHORT);
+ toast.show();
+ }
+
protected void detectSmallTablet() {
DisplayMetrics displayMetrics = new DisplayMetrics();
|