diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/upload/UploadActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/upload/UploadActivity.java index b2b30801..a4e700a4 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/upload/UploadActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/upload/UploadActivity.java @@ -22,6 +22,7 @@ import android.text.Spannable; import android.text.TextWatcher; import android.text.method.LinkMovementMethod; import android.text.style.ForegroundColorSpan; +import android.view.ContextThemeWrapper; import android.view.LayoutInflater; import android.view.View; import android.widget.AdapterView; @@ -223,10 +224,12 @@ public class UploadActivity extends BaseActivity { if (layoutInflater == null) { return; } + + Context wrapper = new ContextThemeWrapper(this, R.style.PopupWindow); View popUpContent = layoutInflater.inflate(R.layout.activity_upload_filename_info_popup, null); //Creates the PopupWindow - PopupWindow popUp = new PopupWindow(view.getContext()); + PopupWindow popUp = new PopupWindow(wrapper); popUp.setContentView(popUpContent); popUp.setWidth(LinearLayout.LayoutParams.WRAP_CONTENT); popUp.setHeight(LinearLayout.LayoutParams.WRAP_CONTENT); diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 52f525c2..78909d7b 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -54,6 +54,10 @@ 8dp + +