// Path: app/src/main/java/dynoapps/exchange_rates/util/L.java
// public class L {
// 
//     private static final String TAG = "ExchangeRates";
// 
//     private static final String LOG_PREFIX = "";
//     private static final int LOG_PREFIX_LENGTH = LOG_PREFIX.length();
//     private static final int MAX_LOG_TAG_LENGTH = 23;
//     private static final int MAX_CHAR_LENGTH = 320;
// 
//     public static String makeLogTag(String str) {
//         if (str.length() > MAX_LOG_TAG_LENGTH - LOG_PREFIX_LENGTH) {
//             return LOG_PREFIX + str.substring(0, MAX_LOG_TAG_LENGTH - LOG_PREFIX_LENGTH - 1);
//         }
// 
//         return LOG_PREFIX + str;
//     }
// 
//     public static void e(String tag, String msg) {
//         Log.e(makeLogTag(tag), msg);
//     }
// 
//     public static void e(String tag, Throwable th) {
//         Log.e(tag, "", th);
//     }
// 
//     public static void i(String tag, String msg) {
//         Log.i(makeLogTag(tag), msg);
//     }
// 
//     public static void ex(Exception ex) {
//         Log.e(TAG, "", ex);
//     }
// 
//     public static void ex(Exception ex, String message) {
//         Log.e(TAG, message, ex);
//     }
// }


import android.content.res.TypedArray;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import androidx.annotation.DrawableRes;
import androidx.annotation.LayoutRes;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.core.content.ContextCompat;
import butterknife.ButterKnife;
import dynoapps.exchange_rates.util.L;
        super.onCreate(savedInstanceState);
        setContentView(getLayoutId());
        ButterKnife.bind(this);
    }

    protected Toolbar getActionBarToolbar() {
        if (mActionBarToolbar == null) {
            mActionBarToolbar = findViewById(R.id.toolbar_actionbar);
            if (mActionBarToolbar != null) {
                setSupportActionBar(mActionBarToolbar);
            }
        }
        return mActionBarToolbar;
    }

    @LayoutRes
    public abstract int getLayoutId();

    protected void setNavigationIcon(@DrawableRes Integer resId) {
        Drawable drawable = ContextCompat.getDrawable(this, resId);
        setNavigationIcon(drawable);
    }

    protected void setNavigationIcon(Drawable drawable) {
        Integer color = null;

        try {
            TypedArray a = getTheme().obtainStyledAttributes(new int[]{R.attr.actionBarIconColor});
            color = a.getColor(0, Color.WHITE);
        } catch (Exception e) {
// Path: app/src/main/java/dynoapps/exchange_rates/util/L.java
// public class L {
// 
//     private static final String TAG = "ExchangeRates";
// 
//     private static final String LOG_PREFIX = "";
//     private static final int LOG_PREFIX_LENGTH = LOG_PREFIX.length();
//     private static final int MAX_LOG_TAG_LENGTH = 23;
//     private static final int MAX_CHAR_LENGTH = 320;
// 
//     public static String makeLogTag(String str) {
//         if (str.length() > MAX_LOG_TAG_LENGTH - LOG_PREFIX_LENGTH) {
//             return LOG_PREFIX + str.substring(0, MAX_LOG_TAG_LENGTH - LOG_PREFIX_LENGTH - 1);
//         }
// 
//         return LOG_PREFIX + str;
//     }
// 
//     public static void e(String tag, String msg) {
//         Log.e(makeLogTag(tag), msg);
//     }
// 
//     public static void e(String tag, Throwable th) {
//         Log.e(tag, "", th);
//     }
// 
//     public static void i(String tag, String msg) {
//         Log.i(makeLogTag(tag), msg);
//     }
// 
//     public static void ex(Exception ex) {
//         Log.e(TAG, "", ex);
//     }
// 
//     public static void ex(Exception ex, String message) {
//         Log.e(TAG, message, ex);
//     }
// }


// Path: app/src/main/java/dynoapps/exchange_rates/BaseActivity.java
import android.content.res.TypedArray;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import androidx.annotation.DrawableRes;
import androidx.annotation.LayoutRes;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.core.content.ContextCompat;
import butterknife.ButterKnife;
import dynoapps.exchange_rates.util.L;

        super.onCreate(savedInstanceState);
        setContentView(getLayoutId());
        ButterKnife.bind(this);
    }

    protected Toolbar getActionBarToolbar() {
        if (mActionBarToolbar == null) {
            mActionBarToolbar = findViewById(R.id.toolbar_actionbar);
            if (mActionBarToolbar != null) {
                setSupportActionBar(mActionBarToolbar);
            }
        }
        return mActionBarToolbar;
    }

    @LayoutRes
    public abstract int getLayoutId();

    protected void setNavigationIcon(@DrawableRes Integer resId) {
        Drawable drawable = ContextCompat.getDrawable(this, resId);
        setNavigationIcon(drawable);
    }

    protected void setNavigationIcon(Drawable drawable) {
        Integer color = null;

        try {
            TypedArray a = getTheme().obtainStyledAttributes(new int[]{R.attr.actionBarIconColor});
            color = a.getColor(0, Color.WHITE);
        } catch (Exception e) {
            L.ex(e);