raised api level and made necessary code changes

This commit is contained in:
Ernir Erlingsson
2016-08-10 00:25:35 +02:00
parent d34afa5f30
commit 48e1a65a24
16 changed files with 49 additions and 323 deletions

View File

@@ -16,10 +16,8 @@ package im.delight.android.identicons;
* limitations under the License.
*/
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Canvas;
import android.os.Build;
import android.util.AttributeSet;
import android.view.View;
@@ -41,12 +39,9 @@ abstract public class IdenticonView extends View {
init();
}
@SuppressLint("NewApi")
protected void init() {
setWillNotDraw(false);
if (Build.VERSION.SDK_INT >= 11) {
setLayerType(View.LAYER_TYPE_SOFTWARE, null);
}
setLayerType(View.LAYER_TYPE_SOFTWARE, null);
}
public void show(byte[] input) {