|
|
@@ -76,7 +76,7 @@ public class ToastProvider {
|
|
|
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
|
|
View view;
|
|
|
if (copyToastFlag != 0) {
|
|
|
- view = inflater.inflate(R.layout.setting_toast_url_copy_pop_up, null);
|
|
|
+ view = inflater.inflate(R.layout.toast_simple, null);
|
|
|
((TextView) view.findViewById(R.id.setting_toast_detail)).setText(detail);
|
|
|
}
|
|
|
else {
|
|
|
@@ -100,11 +100,11 @@ public class ToastProvider {
|
|
|
Context context = App.getInstance().getContext();
|
|
|
Toast toast = new Toast(context);
|
|
|
toast.setDuration(Toast.LENGTH_LONG);
|
|
|
- toast.setGravity(Gravity.FILL_HORIZONTAL | Gravity.BOTTOM, 0, 0);
|
|
|
+ toast.setGravity(Gravity.FILL, 0, 0);
|
|
|
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
|
|
View view;
|
|
|
if (copyToastFlag != 0) {
|
|
|
- view = inflater.inflate(R.layout.setting_toast_url_copy_pop_up, null);
|
|
|
+ view = inflater.inflate(R.layout.toast_simple, null);
|
|
|
((TextView) view.findViewById(R.id.setting_toast_detail)).setText(detail);
|
|
|
}
|
|
|
else {
|
|
|
@@ -142,10 +142,10 @@ public class ToastProvider {
|
|
|
Context context = App.getInstance().getContext();
|
|
|
Toast toast = new Toast(context);
|
|
|
toast.setDuration(Toast.LENGTH_LONG);
|
|
|
- toast.setGravity(Gravity.FILL_HORIZONTAL | Gravity.BOTTOM, 0, 0);
|
|
|
+ toast.setGravity(Gravity.FILL, 0, 0);
|
|
|
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
|
|
View view;
|
|
|
- view = inflater.inflate(R.layout.setting_toast_url_copy_pop_up, null);
|
|
|
+ view = inflater.inflate(R.layout.toast_simple, null);
|
|
|
((TextView) view.findViewById(R.id.setting_toast_detail)).setText(str);
|
|
|
|
|
|
toast.setView(view);
|