mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-18 11:42:17 +01:00
DroidFish: Lint fixes, from Leo Mayer.
This commit is contained in:
@@ -533,9 +533,6 @@ public class DroidFish extends Activity implements GUIInterface {
|
||||
}
|
||||
|
||||
private final void initUI() {
|
||||
// The Android app title is removed with the style, but remains
|
||||
// individually in the Layout cause we need it to have in 2 lines +
|
||||
// landscape and portrait differ quite much
|
||||
leftHanded = leftHandedView();
|
||||
setContentView(leftHanded ? R.layout.main_left_handed : R.layout.main);
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
package org.petero.droidfish.engine;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.os.Build;
|
||||
|
||||
public class EngineUtil {
|
||||
@@ -28,6 +29,7 @@ public class EngineUtil {
|
||||
/** Return number of physical processors, i.e. hyper-threading ignored. */
|
||||
final static native int getNPhysicalProcessors();
|
||||
|
||||
@TargetApi(4)
|
||||
private static final class CpuAbi {
|
||||
static final String get() { return Build.CPU_ABI; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user