Search in sources :

Example 1 with CustomTabService

use of org.horaapps.leafpic.util.CustomTabService in project LeafPic by HoraApps.

the class DonateActivity method onPostCreate.

@Override
protected void onPostCreate(Bundle savedInstanceState) {
    super.onPostCreate(savedInstanceState);
    setContentView(R.layout.activity_donate);
    toolbar = (Toolbar) findViewById(R.id.toolbar);
    setNavBarColor();
    cts = new CustomTabService(org.horaapps.leafpic.activities.DonateActivity.this, getPrimaryColor());
    scr = (ScrollView) findViewById(R.id.donateAct_scrollView);
}
Also used : CustomTabService(org.horaapps.leafpic.util.CustomTabService)

Example 2 with CustomTabService

use of org.horaapps.leafpic.util.CustomTabService in project LeafPic by HoraApps.

the class AboutActivity method onPostCreate.

@Override
protected void onPostCreate(Bundle savedInstanceState) {
    super.onPostCreate(savedInstanceState);
    setContentView(org.horaapps.leafpic.R.layout.activity_about);
    toolbar = (Toolbar) findViewById(org.horaapps.leafpic.R.id.toolbar);
    setNavBarColor();
    cts = new CustomTabService(AboutActivity.this, getPrimaryColor());
    scr = (ScrollView) findViewById(org.horaapps.leafpic.R.id.aboutAct_scrollView);
}
Also used : CustomTabService(org.horaapps.leafpic.util.CustomTabService)

Example 3 with CustomTabService

use of org.horaapps.leafpic.util.CustomTabService in project LeafPic by HoraApps.

the class DonateActivity method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(org.horaapps.leafpic.R.layout.activity_donate);
    toolbar = (Toolbar) findViewById(org.horaapps.leafpic.R.id.toolbar);
    bar = (SeekBar) findViewById(R.id.seek_bar_donations);
    setNavBarColor();
    cts = new CustomTabService(DonateActivity.this, getPrimaryColor());
    scr = (ScrollView) findViewById(org.horaapps.leafpic.R.id.donateAct_scrollView);
    mHelper = new IabHelper(this, SecretConstants.getBase64EncodedPublicKey(getApplicationContext()));
    mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() {

        public void onIabSetupFinished(IabResult result) {
            if (!result.isSuccess()) {
                // Oh no, there was a problem.
                Log.d("donateAct", "Problem setting up In-app Billing: " + result);
            }
        // Hooray, IAB is fully set up!
        }
    });
}
Also used : CustomTabService(org.horaapps.leafpic.util.CustomTabService) IabResult(org.horaapps.leafpic.util.inapppurchase.IabResult) IabHelper(org.horaapps.leafpic.util.inapppurchase.IabHelper)

Aggregations

CustomTabService (org.horaapps.leafpic.util.CustomTabService)3 IabHelper (org.horaapps.leafpic.util.inapppurchase.IabHelper)1 IabResult (org.horaapps.leafpic.util.inapppurchase.IabResult)1