Loading core/java/android/widget/Toast.java +2 −9 Original line number Diff line number Diff line Loading @@ -16,16 +16,13 @@ package android.widget; import com.android.internal.R; import android.app.INotificationManager; import android.app.ITransientNotification; import android.content.Context; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.PixelFormat; import android.os.Handler; import android.os.RemoteException; import android.os.Handler; import android.os.ServiceManager; import android.util.Log; import android.view.Gravity; Loading Loading @@ -310,13 +307,9 @@ public class Toast { | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON; mParams.format = PixelFormat.TRANSLUCENT; TypedArray a = context.obtainStyledAttributes(null, R.styleable.ToastStyle); int resId = a.getResourceId(R.styleable.ToastStyle_toastAnimation, -1); mParams.windowAnimations = resId; mParams.windowAnimations = com.android.internal.R.style.Animation_Toast; mParams.type = WindowManager.LayoutParams.TYPE_TOAST; mParams.setTitle("Toast"); a.recycle(); } /** Loading core/res/res/layout/transient_notification.xml +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:background="?android:attr/toastBackground"> android:background="@drawable/toast_frame"> <TextView android:id="@android:id/message" Loading Loading
core/java/android/widget/Toast.java +2 −9 Original line number Diff line number Diff line Loading @@ -16,16 +16,13 @@ package android.widget; import com.android.internal.R; import android.app.INotificationManager; import android.app.ITransientNotification; import android.content.Context; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.PixelFormat; import android.os.Handler; import android.os.RemoteException; import android.os.Handler; import android.os.ServiceManager; import android.util.Log; import android.view.Gravity; Loading Loading @@ -310,13 +307,9 @@ public class Toast { | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON; mParams.format = PixelFormat.TRANSLUCENT; TypedArray a = context.obtainStyledAttributes(null, R.styleable.ToastStyle); int resId = a.getResourceId(R.styleable.ToastStyle_toastAnimation, -1); mParams.windowAnimations = resId; mParams.windowAnimations = com.android.internal.R.style.Animation_Toast; mParams.type = WindowManager.LayoutParams.TYPE_TOAST; mParams.setTitle("Toast"); a.recycle(); } /** Loading
core/res/res/layout/transient_notification.xml +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:background="?android:attr/toastBackground"> android:background="@drawable/toast_frame"> <TextView android:id="@android:id/message" Loading