Exemplo n.º 1
0
 public ViewIntentBuilder setDataSource(DataSource datasource) {
   o.b(
       datasource.getDataType().equals(Sp),
       "Data source %s is not for the data type %s",
       new Object[] {datasource, Sp});
   Sq = datasource;
   return this;
 }
Exemplo n.º 2
0
 public Intent build() {
   boolean flag1 = true;
   Intent intent;
   boolean flag;
   if (KS > 0L) {
     flag = true;
   } else {
     flag = false;
   }
   o.a(flag, "Start time must be set");
   if (Sr > KS) {
     flag = flag1;
   } else {
     flag = false;
   }
   o.a(flag, "End time must be set and after start time");
   intent = new Intent("vnd.google.fitness.VIEW");
   intent.setType(DataType.getMimeType(Sq.getDataType()));
   intent.putExtra("vnd.google.fitness.start_time", KS);
   intent.putExtra("vnd.google.fitness.end_time", Sr);
   c.a(Sq, intent, "vnd.google.fitness.data_source");
   return i(intent);
 }