Remove code for Ads, were not in use anyways after falling out of Google Play guidelines.
This commit is contained in:
@@ -17,7 +17,7 @@ public class MySettings extends Activity {
|
||||
Context context;
|
||||
|
||||
LinearLayout settingsArea;
|
||||
MySettingItem quickLoad, adsEnabled, rainbowLists, whiteOnBlack;
|
||||
MySettingItem quickLoad, rainbowLists, whiteOnBlack;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
@@ -35,16 +35,13 @@ public class MySettings extends Activity {
|
||||
|
||||
// Instantiate settings
|
||||
quickLoad = new MySettingItem(context, new MySettingInfo());
|
||||
adsEnabled = new MySettingItem(context, new MySettingInfo());
|
||||
|
||||
// Name them
|
||||
quickLoad.setName("Quick Load:");
|
||||
adsEnabled.setName("Ads Enabled:");
|
||||
|
||||
// Set the checkboxes
|
||||
dalih.open();
|
||||
quickLoad.setEnabled(dalih.getQuickLoad());
|
||||
adsEnabled.setEnabled(dalih.getAdsEnabled());
|
||||
dalih.close();
|
||||
|
||||
// Set the checkbox actions
|
||||
@@ -62,26 +59,8 @@ public class MySettings extends Activity {
|
||||
}
|
||||
});
|
||||
|
||||
adsEnabled.btnItem.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
dalih.setAdsEnabled(!dalih.getAdsEnabled());
|
||||
adsEnabled.checkBox.setChecked(dalih.getAdsEnabled());
|
||||
}
|
||||
});
|
||||
adsEnabled.checkBox.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
dalih.setAdsEnabled(adsEnabled.checkBox.isChecked());
|
||||
}
|
||||
});
|
||||
|
||||
// Throw them onto the screen
|
||||
settingsArea.addView(quickLoad.getView());
|
||||
|
||||
if (Build.VERSION.SDK_INT >= 9) {
|
||||
settingsArea.addView(adsEnabled.getView());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user