[Android] No need to get the base context in ShaderActivity.java for getting application info. Since ShaderActivity.java is (obviously) an Activity. It can act as it's own Context.

This commit is contained in:
Lioncash 2013-10-15 03:12:15 -04:00
parent 773295cb28
commit 34e447cd4d
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import android.os.Bundle;
public final class ShaderActivity extends DirectoryActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
File shaderDir = new File(getBaseContext().getApplicationInfo().dataDir, "shaders_glsl");
File shaderDir = new File(getApplicationInfo().dataDir, "shaders_glsl");
if (shaderDir.exists())
super.setStartDirectory(shaderDir.getAbsolutePath());