diff --git a/app/build.gradle b/app/build.gradle index 61a67d9..5e1ea40 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -18,8 +18,8 @@ android { minSdkVersion 15 targetSdkVersion 25 - versionCode 11 - versionName "0.4.11" + versionCode 12 + versionName "0.4.12" signingConfig signingConfigs.WakeReality_androidB } diff --git a/app/src/main/java/com/yrek/incant/Incant.java b/app/src/main/java/com/yrek/incant/Incant.java index f72aa4d..9df0438 100644 --- a/app/src/main/java/com/yrek/incant/Incant.java +++ b/app/src/main/java/com/yrek/incant/Incant.java @@ -106,6 +106,20 @@ public void onCreate(Bundle savedInstanceState) { coverImageCache = new LruCache(10); + findViewById(R.id.main_top_intro_button_label0).setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + hideIntroMessageClick(v); + } + }); + + findViewById(R.id.main_top_error_storage_try).setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + storageTryAgainClick(v); + } + }); + if (useStyledIntroStrings) { // Android does not seem to have a way to getText() directly from XML, so try here in code. ((TextView) findViewById(R.id.main_top_intro_title0)).setText(getText(R.string.main_intro_title0_styled)); diff --git a/app/src/main/res/layout/main.xml b/app/src/main/res/layout/main.xml index 44b491d..ed2784d 100644 --- a/app/src/main/res/layout/main.xml +++ b/app/src/main/res/layout/main.xml @@ -38,7 +38,6 @@ android:layout_height="wrap_content" android:padding="6dp" android:text="@string/main_intro_button_label0" - android:onClick="hideIntroMessageClick" /> @@ -63,7 +62,6 @@ android:layout_height="wrap_content" android:padding="6dp" android:text="@string/main_top_error_storage_try" - android:onClick="storageTryAgainClick" />