Revision b2a2d2f1 src/com/rackspacecloud/android/CloudActivity.java
b/src/com/rackspacecloud/android/CloudActivity.java | ||
---|---|---|
80 | 80 |
|
81 | 81 |
} |
82 | 82 |
|
83 |
@Override |
|
84 |
protected void onStart(){ |
|
85 |
super.onStart(); |
|
86 |
if(isLoading){ |
|
87 |
showDialog(); |
|
88 |
} |
|
89 |
} |
|
90 |
|
|
91 |
@Override |
|
92 |
protected void onStop(){ |
|
93 |
super.onStop(); |
|
94 |
if(isLoading){ |
|
95 |
hideDialog(); |
|
96 |
isLoading = true; |
|
97 |
} |
|
98 |
} |
|
99 |
|
|
83 | 100 |
protected final void showAlert(String title, String message) { |
84 | 101 |
try { |
85 | 102 |
AlertDialog alert = new AlertDialog.Builder(this).create(); |
... | ... | |
152 | 169 |
if(pDialog == null || !pDialog.isShowing()){ |
153 | 170 |
isLoading = true; |
154 | 171 |
pDialog = new ProgressDialog(this); |
172 |
pDialog.setProgressStyle(R.style.NewDialog); |
|
155 | 173 |
|
156 | 174 |
/* |
157 | 175 |
* if back is pressed while dialog is showing it will |
... | ... | |
163 | 181 |
finish(); |
164 | 182 |
} |
165 | 183 |
}); |
166 |
|
|
167 | 184 |
pDialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND); |
168 | 185 |
pDialog.show(); |
169 | 186 |
pDialog.setContentView(new ProgressBar(this), new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); |
Also available in: Unified diff