<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>
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));
@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