kopia lustrzana https://github.com/SP8EBC/MeteoSystem
27 wiersze
761 B
Java
27 wiersze
761 B
Java
package cc.pogoda.mobile.meteosystem.activity.handler;
|
|
|
|
import android.content.Intent;
|
|
import android.view.View;
|
|
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
|
|
import cc.pogoda.mobile.meteosystem.activity.AllStationsActivity;
|
|
import cc.pogoda.mobile.meteosystem.activity.MainActivity;
|
|
import cc.pogoda.mobile.meteosystem.type.ParceableStationsList;
|
|
|
|
public class MainActImageButtonAllStationsClickEvent implements View.OnClickListener {
|
|
|
|
MainActivity parent;
|
|
Intent intent;
|
|
|
|
public MainActImageButtonAllStationsClickEvent(MainActivity parent) {
|
|
this.parent = parent;
|
|
intent = new Intent(this.parent, AllStationsActivity.class);
|
|
}
|
|
|
|
@Override
|
|
public void onClick(View v) {
|
|
parent.startActivity(intent);
|
|
}
|
|
}
|