summaryrefslogtreecommitdiff
path: root/src/org/fox/ttrss/CommonActivity.java
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2012-09-16 13:25:28 +0400
committerAndrew Dolgov <fox@fakecake.org>2012-09-16 13:25:28 +0400
commitced80be1aea975b59db5a0e6dd14acb054e7910e (patch)
treef69f8c12151d0ccb9eee7f52d598c6ef626c914c /src/org/fox/ttrss/CommonActivity.java
parent86a4f6c2dea5700ed3597d9afe280ddb93d56316 (diff)
initial
Diffstat (limited to 'src/org/fox/ttrss/CommonActivity.java')
-rw-r--r--src/org/fox/ttrss/CommonActivity.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/org/fox/ttrss/CommonActivity.java b/src/org/fox/ttrss/CommonActivity.java
index d88775b3..9f67e49d 100644
--- a/src/org/fox/ttrss/CommonActivity.java
+++ b/src/org/fox/ttrss/CommonActivity.java
@@ -9,6 +9,7 @@ import android.util.DisplayMetrics;
import android.util.FloatMath;
import android.util.Log;
import android.view.Display;
+import android.widget.TextView;
import android.widget.Toast;
public class CommonActivity extends FragmentActivity {
@@ -31,6 +32,16 @@ public class CommonActivity extends FragmentActivity {
m_smallScreenMode = smallScreen;
}
+ protected void setLoadingStatus(int status, boolean showProgress) {
+ TextView tv = (TextView) findViewById(R.id.loading_message);
+
+ if (tv != null) {
+ tv.setText(status);
+ }
+
+ setProgressBarIndeterminateVisibility(showProgress);
+ }
+
public void toast(int msgId) {
Toast toast = Toast.makeText(CommonActivity.this, msgId, Toast.LENGTH_SHORT);
toast.show();