/*
* This is the source code of Telegram for Android v. 3.x.x.
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Nikolai Kudashov, 2013-2017.
*/
package org.telegram.ui;
import android.annotation.SuppressLint;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import org.telegram.messenger.R;
import org.telegram.ui.ActionBar.BaseFragment;
@SuppressLint("HardwareIds")
public class Login2Activity extends BaseFragment implements View.OnClickListener {
@Override
public View createView(final Context context) {
actionBar.setVisibility(View.GONE);
fragmentView =LayoutInflater.from(context).inflate(R.layout.activity_no_login, null);
fragmentView.findViewById(R.id.sign_in_btn).setOnClickListener(this);
fragmentView.findViewById(R.id.log_in_btn).setOnClickListener(this);
return fragmentView;
}
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.sign_in_btn:
case R.id.log_in_btn:
finishFragment();
break;
}
}
}