summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap/bitmaskclient/ButterKnifeActivity.java
blob: 411644635da8fea2894345a0a69c3b74658e4e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package se.leap.bitmaskclient;

import android.support.v7.app.AppCompatActivity;
import android.view.View;

import butterknife.ButterKnife;

/**
 * Automatically inject with ButterKnife after calling setContentView
 */

public abstract class ButterKnifeActivity extends AppCompatActivity {

    @Override
    public void setContentView(View view) {
        super.setContentView(view);
        ButterKnife.inject(this);
    }

    @Override
    public void setContentView(int layoutResID) {
        super.setContentView(layoutResID);
        ButterKnife.inject(this);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }
}