Fix for Android 2.3

This commit is contained in:
serso 2015-02-08 17:43:01 +01:00
parent 1154cae8e5
commit 72f58aad7f
2 changed files with 2 additions and 1 deletions

View File

@ -91,7 +91,7 @@ public class PreferencesActivity extends BasePreferencesActivity {
adFreePreference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() { adFreePreference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
@Override @Override
public boolean onPreferenceClick(Preference preference) { public boolean onPreferenceClick(Preference preference) {
startActivity(new Intent(getApplicationContext(), PurchaseDialogActivity.class)); startActivity(new Intent(PreferencesActivity.this, PurchaseDialogActivity.class));
return true; return true;
} }
}); });

View File

@ -25,6 +25,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:layout_width="wrap_content" a:layout_width="wrap_content"
a:layout_height="wrap_content" a:layout_height="wrap_content"
a:minWidth="200dp"
a:orientation="vertical" a:orientation="vertical"
a:padding="3dp" a:padding="3dp"
a:background="?attr/cpp_main_bg"> a:background="?attr/cpp_main_bg">