Source/sources/com/google/appinventor/components/runtime/Canvas.java
public void onSizeChanged(int w, int h, int oldW, int oldH) {
            int oldBitmapWidth = this.bitmap.getWidth();
            int oldBitmapHeight = this.bitmap.getHeight();
            if (w != oldBitmapWidth || h != oldBitmapHeight) {
                Bitmap oldBitmap = this.bitmap;
                try {
                    Bitmap scaledBitmap = Bitmap.createScaledBitmap(oldBitmap, w, h, false);
                    if (scaledBitmap.isMutable()) {
                        this.bitmap = scaledBitmap;
                        this.canvas = new android.graphics.Canvas(this.bitmap);
                    } else {
                        this.bitmap = Bitmap.createBitmap(w, h, Config.ARGB_8888);
                        this.canvas = new android.graphics.Canvas(this.bitmap);
                        this.canvas.drawBitmap(oldBitmap, new Rect(0, 0, oldBitmapWidth, oldBitmapHeight), new RectF(0.0f, 0.0f, (float) w, (float) h), null);
                    }
                } catch (IllegalArgumentException e) {
                    Log.e(Canvas.LOG_TAG, "Bad values to createScaledBimap w = " + w + ", h = " + h);
                }
                this.scaledBackgroundBitmap = null;
            }
        }
/* access modifiers changed from: protected */
access modifiers changed from: protected
access modifiers changed from : protected
public void onSizeChanged(int w, int h, int oldW, int oldH) {
            int oldBitmapWidth = this.bitmap.getWidth();
            int oldBitmapHeight = this.bitmap.getHeight();
            if (w != oldBitmapWidth || h != oldBitmapHeight) {
                Bitmap oldBitmap = this.bitmap;
                try {
                    Bitmap scaledBitmap = Bitmap.createScaledBitmap(oldBitmap, w, h, false);
                    if (scaledBitmap.isMutable()) {
                        this.bitmap = scaledBitmap;
                        this.canvas = new android.graphics.Canvas(this.bitmap);
                    } else {
                        this.bitmap = Bitmap.createBitmap(w, h, Config.ARGB_8888);
                        this.canvas = new android.graphics.Canvas(this.bitmap);
                        this.canvas.drawBitmap(oldBitmap, new Rect(0, 0, oldBitmapWidth, oldBitmapHeight), new RectF(0.0f, 0.0f, (float) w, (float) h), null);
                    }
                } catch (IllegalArgumentException e) {
                    Log.e(Canvas.LOG_TAG, "Bad values to createScaledBimap w = " + w + ", h = " + h);
                }
                this.scaledBackgroundBitmap = null;
            }
        }
public void onSizeChanged ( int w , int h , int oldW , int oldH ) { int oldBitmapWidth = this . bitmap . getWidth ( ) ; int oldBitmapHeight = this . bitmap . getHeight ( ) ; if ( w != oldBitmapWidth || h != oldBitmapHeight ) { Bitmap oldBitmap = this . bitmap ; try { Bitmap scaledBitmap = Bitmap . createScaledBitmap ( oldBitmap , w , h , false ) ; if ( scaledBitmap . isMutable ( ) ) { this . bitmap = scaledBitmap ; this . canvas = new android . graphics . Canvas ( this . bitmap ) ; } else { this . bitmap = Bitmap . createBitmap ( w , h , Config . ARGB_8888 ) ; this . canvas = new android . graphics . Canvas ( this . bitmap ) ; this . canvas . drawBitmap ( oldBitmap , new Rect ( 0 , 0 , oldBitmapWidth , oldBitmapHeight ) , new RectF ( 0.0f , 0.0f , ( float ) w , ( float ) h ) , null ) ; } } catch ( IllegalArgumentException e ) { Log . e ( Canvas . LOG_TAG , "Bad values to createScaledBimap w = " + w + ", h = " + h ) ; } this . scaledBackgroundBitmap = null ; } }
access modifiers changed from: protected
access modifiers changed from : protected