Эх сурвалжийг харах

visual fix for Progress DialogFragment(s)

Andy Scherzinger 9 жил өмнө
parent
commit
a393531774

+ 5 - 0
res/values/styles.xml

@@ -61,6 +61,11 @@
 
 	<style name="ownCloud.Dialog" parent="Theme.AppCompat.Light.Dialog" />
 
+	<style name="ProgressDialogTheme" parent="ownCloud.Dialog">
+		<item name="android:windowFrame">@null</item>
+		<item name="android:windowBackground">@null</item>
+	</style>
+
 	<style name="ownCloud.Button" parent="Widget.AppCompat.Button">
 		<item name="colorButtonNormal">@color/primary</item>
 		<item name="colorControlActivated">@color/primary_dark</item>

+ 1 - 1
src/com/owncloud/android/ui/activity/Uploader.java

@@ -201,7 +201,7 @@ public class Uploader extends FileActivity
         final AlertDialog.Builder builder = new Builder(this);
         switch (id) {
         case DIALOG_WAITING:
-            ProgressDialog pDialog = new ProgressDialog(this);
+            ProgressDialog pDialog = new ProgressDialog(this, R.style.ProgressDialogTheme);
             pDialog.setIndeterminate(false);
             pDialog.setCancelable(false);
             pDialog.setMessage(getResources().getString(R.string.uploader_info_uploading));

+ 1 - 1
src/com/owncloud/android/ui/dialog/IndeterminateProgressDialog.java

@@ -59,7 +59,7 @@ public class IndeterminateProgressDialog extends DialogFragment {
     @Override
     public Dialog onCreateDialog(Bundle savedInstanceState) {
         /// create indeterminate progress dialog
-        final ProgressDialog dialog = new ProgressDialog(getActivity());
+        final ProgressDialog dialog = new ProgressDialog(getActivity(), R.style.ProgressDialogTheme);
         dialog.setIndeterminate(true);
         
         /// set message