aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-10-04 18:08:33 -0700
committerScott Jackson <daneren2005@gmail.com>2014-10-04 18:08:33 -0700
commite3a568fe5cca0b94ab72b3ba422bf258a75a25a1 (patch)
tree08c68207e12e6c4019eb4b3b0b45516af2b97d27
parent9fbf7578b216cdac338ccd6537e9efa2908d9c7d (diff)
downloaddsub-e3a568fe5cca0b94ab72b3ba422bf258a75a25a1.tar.gz
dsub-e3a568fe5cca0b94ab72b3ba422bf258a75a25a1.tar.bz2
dsub-e3a568fe5cca0b94ab72b3ba422bf258a75a25a1.zip
Get rid of false error from Android Studio
-rw-r--r--src/github/daneren2005/dsub/activity/SubsonicActivity.java4
-rw-r--r--src/github/daneren2005/dsub/fragments/SubsonicFragment.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/src/github/daneren2005/dsub/activity/SubsonicActivity.java
index 6544b685..fc0cbcdc 100644
--- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java
+++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java
@@ -495,7 +495,7 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte
}
protected void exit() {
- if(this.getClass() != SubsonicFragmentActivity.class) {
+ if(((Object) this).getClass() != SubsonicFragmentActivity.class) {
Intent intent = new Intent(this, SubsonicFragmentActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.putExtra(Constants.INTENT_EXTRA_NAME_EXIT, true);
@@ -656,7 +656,7 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte
}
protected void restart() {
- Intent intent = new Intent(this, this.getClass());
+ Intent intent = new Intent(this, ((Object) this).getClass());
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.putExtras(getIntent());
Util.startActivityWithoutTransition(this, intent);
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
index 67bef249..0ad7cd4c 100644
--- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -524,7 +524,7 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
}
protected void exit() {
- if(context.getClass() != SubsonicFragmentActivity.class) {
+ if(((Object) context).getClass() != SubsonicFragmentActivity.class) {
Intent intent = new Intent(context, SubsonicFragmentActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.putExtra(Constants.INTENT_EXTRA_NAME_EXIT, true);