30 lines
587 B
Java
30 lines
587 B
Java
/*
|
|
* Johan Nilsson <https://github.com/johannilsson/android-actionbar>
|
|
*/
|
|
package me.shkschneider.dropbearserver;
|
|
|
|
import com.markupartist.android.widget.ActionBar.Action;
|
|
|
|
import me.shkschneider.dropbearserver.R;
|
|
|
|
import android.content.Context;
|
|
import android.view.View;
|
|
|
|
class HomeAction implements Action {
|
|
|
|
private Context mContext;
|
|
|
|
public HomeAction(Context context) {
|
|
mContext = context;
|
|
}
|
|
|
|
public int getDrawable() {
|
|
return R.drawable.ic_launcher;
|
|
}
|
|
|
|
public void performAction(View view) {
|
|
((MainActivity) mContext).goToDefaultPage();
|
|
}
|
|
|
|
}
|