private boolean shouldShowTos() {
   if (!this.mParams.showCarrierTos()) {
     return false;
   }
   String tosVersion = (String) BillingPreferences.ACCEPTED_CARRIER_TOS_VERSION.get();
   if (tosVersion == null || !tosVersion.equals(this.mProvisioning.getTosVersion())) {
     return true;
   }
   return false;
 }
 public void run(Runnable finishRunnable) {
   if (shouldFetchProvisioning(this.mDcbStorage)) {
     fetchProvisioning(
         (String) BillingPreferences.ACCEPTED_CARRIER_TOS_VERSION.get(),
         finishRunnable,
         finishRunnable);
     return;
   }
   if (finishRunnable != null) {
     finishRunnable.run();
   }
   FinskyLog.d("No need to fetch provisioning from carrier.", new Object[0]);
 }
 private void getProvisioning(Runnable onSuccess, Runnable onError) {
   new CarrierProvisioningAction()
       .forceRun(
           onSuccess, onError, (String) BillingPreferences.ACCEPTED_CARRIER_TOS_VERSION.get());
 }