mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
* xml work done * testing * copyright popup added local * minor changes * minor changes 2 * picture removed
This commit is contained in:
parent
c626f97fb9
commit
824a82ad2a
3 changed files with 54 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ import butterknife.OnClick;
|
|||
import fr.free.nrw.commons.quiz.QuizActivity;
|
||||
import fr.free.nrw.commons.theme.BaseActivity;
|
||||
import fr.free.nrw.commons.utils.ConfigUtils;
|
||||
import android.app.AlertDialog;
|
||||
import android.widget.Button;
|
||||
|
||||
public class WelcomeActivity extends BaseActivity {
|
||||
|
||||
|
|
@ -25,6 +27,9 @@ public class WelcomeActivity extends BaseActivity {
|
|||
|
||||
private WelcomePagerAdapter adapter = new WelcomePagerAdapter();
|
||||
private boolean isQuiz;
|
||||
private AlertDialog.Builder dialogBuilder;
|
||||
private AlertDialog dialog;
|
||||
Button okButton;
|
||||
|
||||
/**
|
||||
* Initialises exiting fields and dependencies
|
||||
|
|
@ -48,6 +53,15 @@ public class WelcomeActivity extends BaseActivity {
|
|||
// Enable skip button if beta flavor
|
||||
if (ConfigUtils.isBetaFlavour()) {
|
||||
findViewById(R.id.finishTutorialButton).setVisibility(View.VISIBLE);
|
||||
|
||||
dialogBuilder = new AlertDialog.Builder(this);
|
||||
final View contactPopupView = getLayoutInflater().inflate(R.layout.popup_for_copyright,null);
|
||||
dialogBuilder.setView(contactPopupView);
|
||||
dialog = dialogBuilder.create();
|
||||
dialog.show();
|
||||
|
||||
okButton = dialog.findViewById(R.id.button_ok);
|
||||
okButton.setOnClickListener(view -> dialog.dismiss());
|
||||
}
|
||||
|
||||
ButterKnife.bind(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue