💅 style(dialog_app_settings): use popup_background for AppSettingsPopup dialog background
This commit is contained in:
3 files changed
+1
-12
No files matched your search
@@ -60,16 +60,6 @@ public class AppSettingsPopup extends Dialog implements View.OnClickListener {
|
||||
requestWindowFeature(Window.FEATURE_NO_TITLE);
|
||||
setContentView(R.layout.dialog_app_settings);
|
||||
|
||||
// Set the dialog background to match popup style with border
|
||||
Window window = getWindow();
|
||||
if (window != null) {
|
||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
|
||||
window.setBackgroundDrawable(context.getResources().getDrawable(R.drawable.popup_background, null));
|
||||
} else {
|
||||
window.setBackgroundDrawable(context.getResources().getDrawable(R.drawable.popup_background));
|
||||
}
|
||||
}
|
||||
|
||||
// Set up click listeners
|
||||
findViewById(R.id.app_settings_color).setOnClickListener(this);
|
||||
findViewById(R.id.app_settings_rename).setOnClickListener(this);
|
||||
|
||||
@@ -71,7 +71,6 @@ public class GlobalSettingsDialog extends Dialog implements View.OnClickListener
|
||||
requestWindowFeature(Window.FEATURE_NO_TITLE);
|
||||
setContentView(R.layout.dialog_global_settings);
|
||||
|
||||
|
||||
findViewById(R.id.settings_themes).setOnClickListener(this);
|
||||
freezeSize = findViewById(R.id.settings_freeze_size);
|
||||
freezeSize.setOnClickListener(this);
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/black"
|
||||
android:background="@drawable/popup_background"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user