diff --git a/android-app/src/main/java/org/solovyev/android/calculator/wizard/FinalWizardStep.java b/android-app/src/main/java/org/solovyev/android/calculator/wizard/FinalWizardStep.java index 76aa5e9f..c9458a49 100644 --- a/android-app/src/main/java/org/solovyev/android/calculator/wizard/FinalWizardStep.java +++ b/android-app/src/main/java/org/solovyev/android/calculator/wizard/FinalWizardStep.java @@ -1,59 +1,11 @@ package org.solovyev.android.calculator.wizard; -import android.content.Intent; -import android.net.Uri; -import android.os.Bundle; -import android.view.View; -import android.widget.Button; import org.solovyev.android.calculator.R; -import org.solovyev.android.calculator.preferences.PurchaseDialogActivity; - -import static android.content.Intent.ACTION_VIEW; public class FinalWizardStep extends WizardFragment { - private static final String GITHUB_URL = "https://github.com/serso/android-calculatorpp"; - private static final String CROWDIN_URL = "http://crowdin.net/project/calculatorpp"; - - private Button donateButton; - private Button translateButton; - private Button contributeButton; - @Override protected int getViewResId() { return R.layout.cpp_wizard_step_final; } - - @Override - public void onViewCreated(View root, Bundle savedInstanceState) { - super.onViewCreated(root, savedInstanceState); - - donateButton = (Button) root.findViewById(R.id.cpp_wizard_final_donate_button); - donateButton.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - startActivity(new Intent(getActivity(), PurchaseDialogActivity.class)); - } - }); - - translateButton = (Button) root.findViewById(R.id.cpp_wizard_final_translate_button); - translateButton.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - showUrl(CROWDIN_URL); - } - }); - - contributeButton = (Button) root.findViewById(R.id.cpp_wizard_final_contribute_button); - contributeButton.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - showUrl(GITHUB_URL); - } - }); - } - - private void showUrl(String url) { - startActivity(new Intent(ACTION_VIEW, Uri.parse(url))); - } } diff --git a/android-app/src/main/res/drawable-hdpi/ic_action_done.png b/android-app/src/main/res/drawable-hdpi/ic_action_done.png new file mode 100644 index 00000000..27506bcb Binary files /dev/null and b/android-app/src/main/res/drawable-hdpi/ic_action_done.png differ diff --git a/android-app/src/main/res/drawable-mdpi/ic_action_done.png b/android-app/src/main/res/drawable-mdpi/ic_action_done.png new file mode 100644 index 00000000..21aff361 Binary files /dev/null and b/android-app/src/main/res/drawable-mdpi/ic_action_done.png differ diff --git a/android-app/src/main/res/drawable-xhdpi/ic_action_done.png b/android-app/src/main/res/drawable-xhdpi/ic_action_done.png new file mode 100644 index 00000000..7918ce7b Binary files /dev/null and b/android-app/src/main/res/drawable-xhdpi/ic_action_done.png differ diff --git a/android-app/src/main/res/drawable-xxhdpi/ic_action_done.png b/android-app/src/main/res/drawable-xxhdpi/ic_action_done.png new file mode 100644 index 00000000..846a53f7 Binary files /dev/null and b/android-app/src/main/res/drawable-xxhdpi/ic_action_done.png differ diff --git a/android-app/src/main/res/layout/cpp_wizard_step_final.xml b/android-app/src/main/res/layout/cpp_wizard_step_final.xml index b0e001bd..f1b99216 100644 --- a/android-app/src/main/res/layout/cpp_wizard_step_final.xml +++ b/android-app/src/main/res/layout/cpp_wizard_step_final.xml @@ -22,34 +22,18 @@ ~ Site: http://se.solovyev.org --> - + + - - - - - -