diff --git a/app/src/main/java/com/example/cosmosclient/app/Cosmos.java b/app/src/main/java/com/example/cosmosclient/app/Cosmos.java index ab281c2..08f8cc6 100644 --- a/app/src/main/java/com/example/cosmosclient/app/Cosmos.java +++ b/app/src/main/java/com/example/cosmosclient/app/Cosmos.java @@ -4,10 +4,10 @@ import android.app.Activity; import android.app.Application; import android.content.ComponentCallbacks; -import android.content.res.Configuration; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; +import android.content.res.Configuration; import android.os.Build; import android.os.Bundle; import android.support.annotation.RequiresApi; @@ -18,7 +18,7 @@ import com.example.cosmosclient.entities.AreaInformation; import com.example.cosmosclient.entities.Group; import com.example.cosmosclient.services.CosmosBackgroundService; -import com.example.cosmosclient.views.RequestPermissionsActivty; +import com.example.cosmosclient.views.RequestPermissionsActivity; import android.content.SharedPreferences; import android.view.Gravity; @@ -43,15 +43,14 @@ super(); Log.d(TAG, " Constructor"); - registerActivityLifecycleCallbacks(new ActivityLifecycleCallbacks() { @Override public void onActivityCreated(Activity activity, Bundle bundle) { Log.d(TAG, activity + "onActivityCreated"); // 未許可あり - if (activity instanceof RequestPermissionsActivty && !reqPermissions.isEmpty()) { + if (activity instanceof RequestPermissionsActivity && !reqPermissions.isEmpty()) { Log.d(TAG, "isRequestPermission"); - ((RequestPermissionsActivty)activity).setOnRequestPermissionsResultCallback(new ActivityCompat.OnRequestPermissionsResultCallback() { + ((RequestPermissionsActivity)activity).setOnRequestPermissionsResultCallback(new ActivityCompat.OnRequestPermissionsResultCallback() { @Override public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) { Log.d(TAG, "onRequestPermissionsResult");