dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.google.android.support:wearable:2.0.0-alpha1'
- compile 'com.google.android.gms:play-services-wearable:9.0.2'
+ // compile 'com.google.android.gms:play-services-wearable:9.2.1'
compile project(':vizlib')
}
android:layout_height="match_parent"
tools:context="com.acmetensortoys.watchviz.MainActivity"
tools:deviceIds="wear"
- android:id="@+id/outermost"
- android:background="@color/blue">
+ android:id="@+id/outermost">
+ <!-- Possible overdraw warning if this is added? android:background="@color/blue" -->
<!-- Argh. Oh boy did I lose a lot of time to this. The GridViewPager
needs to be the first child in the tree so that it gets drawn first.
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:2.1.2'
+ classpath 'com.android.tools.build:gradle:2.1.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
@Override
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
Log.d("shc:"+debug1, "Surface Changed:"+format+":"+width+":"+height);
- ;
}
@Override
public void surfaceDestroyed(SurfaceHolder holder) {
audioSourceThread.join();
} catch (InterruptedException ie) {
Log.w("AudioProvider", "join interrupted");
- ;
} finally {
audioSourceThread = null;
}
public abstract class Rendering {
public Rendering(SharedPreferences lsp, SharedPreferences gsp) {}
abstract public void render(Canvas c, float[] audio, float[] fft);
- public void onClick() { ; }
+ public void onClick() { }
}
\ No newline at end of file
// to six seconds, which seems fine.
private Avg meta = new Avg(7);
- // Need to hold on to this explicitly because the SharedPreference object only hold
+ // Need to hold on to this explicitly because the SharedPreference object only holds
// on to it weakly. That's great, thanks and all, but it's somewhat unexpected.
private SharedPreferences.OnSharedPreferenceChangeListener ospcl
= new SharedPreferences.OnSharedPreferenceChangeListener() {
meta.update(thisFrameSum/64);
}
-};
+}
cv.drawText(String.format(Locale.US, "%1$8.1E @ %2$d", msamp, mix), 30, 30, dbp);
}
}
-};
\ No newline at end of file
+}
\ No newline at end of file