package com.hjwylde.rivers.ui.activities;

import android.content.Context;
import android.support.annotation.IdRes;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper;

public abstract class BaseActivity extends AppCompatActivity {
    @NonNull
    public ImageView findImageViewById(@IdRes int id) {
        return findTById(id);
    }

    @NonNull
    public <T extends View> T findTById(@IdRes int id) {
        return (T) findViewById(id);
    }

    @NonNull
    public TextView findTextViewById(@IdRes int id) {
        return findTById(id);
    }

    @NonNull
    public Toolbar findToolbarById(@IdRes int id) {
        return findTById(id);
    }

    @Override
    protected void attachBaseContext(Context newBase) {
        super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
    }
}
@@ -220,88 +220,13 @@
 oid.
-support.v7.widget.Toolbar;%0Aimport android.view.View;%0Aimport android.widget.Image
+view.
 View
@@ -390,114 +390,8 @@
 y %7B%0A
-    @NonNull%0A    public ImageView findImageViewById(@IdRes int id) %7B%0A        return findTById(id);%0A    %7D%0A%0A
     
@@ -505,32 +505,32 @@
 %7D%0A%0A    @NonNull%0A
+
     public TextV
@@ -608,110 +608,8 @@
  %7D%0A%0A
-    @NonNull%0A    public Toolbar findToolbarById(@IdRes int id) %7B%0A        return findTById(id);%0A    %7D%0A%0A
     

Remove unused methods