FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore(mobile-base): remove noisy logs on android by triniwiz · Pull Request #11359 · NativeScript/NativeScript · GitHub

Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .java  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
    • BoxShadowDrawable.java
    • Utils.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,6 @@ private void _renderShadowLayers(int[] values) {

// apply insets that mimic offsets/spread to the shadowLayer
int inset = -spreadRadius;
Log.d(TAG, "Insets:"
+ "\n l: " + (inset + offsetX)
+ "\n t: " + (inset + offsetY)
+ "\n r: " + (inset - offsetX)
+ "\n b: " + (inset - offsetY)
);

int layerIndex = this.addLayer(shadowLayer);
this.setLayerInset(layerIndex,
Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -302,20 +302,14 @@ public static void drawBoxShadow(View view, int[] values) {
if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.M) {
return;
}
Log.d("BoxShadowDrawable", "drawBoxShadow");

Drawable background = view.getBackground();
Drawable wrappedBg;

if (background != null) {
Log.d("BoxShadowDrawable", "current background is: " + background.getClass().getName());

if (background instanceof BoxShadowDrawable) {
wrappedBg = ((BoxShadowDrawable) background).getWrappedDrawable();

if (wrappedBg != null) {
Log.d("BoxShadowDrawable", "already a BoxShadowDrawable, getting wrapped drawable:" + wrappedBg.getClass().getName());
}
} else {
wrappedBg = background;
}
Expand All @@ -324,13 +318,9 @@ public static void drawBoxShadow(View view, int[] values) {
}

// replace background
Log.d("BoxShadowDrawable", "replacing background with new BoxShadowDrawable...");
view.setBackground(new BoxShadowDrawable(wrappedBg, values));

background = view.getBackground();
if (background != null) {
Log.d("BoxShadowDrawable", "new background is: " + background.getClass().getName());
}

int count = 0;
while (view.getParent() != null && view.getParent() instanceof ViewGroup) {
Expand Down
Loading

Back | FazBrowse Home | New Git URL