From d950e1133249d6b2e10aacfa35351e94c0d111ba Mon Sep 17 00:00:00 2001 From: Coffeemakr Date: Tue, 11 Jul 2017 12:52:20 +0200 Subject: [PATCH] Small fixes for AboutActivity * Remove parent activity * Finish activity on "up action" * Remove unused dimensions --- app/src/main/AndroidManifest.xml | 4 ---- app/src/main/java/org/schabi/newpipe/about/AboutActivity.java | 3 +++ app/src/main/res/values/dimens.xml | 3 --- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 7ea221cd5..66d08ded1 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -212,11 +212,7 @@ - diff --git a/app/src/main/java/org/schabi/newpipe/about/AboutActivity.java b/app/src/main/java/org/schabi/newpipe/about/AboutActivity.java index b0a167183..b32e8de7a 100644 --- a/app/src/main/java/org/schabi/newpipe/about/AboutActivity.java +++ b/app/src/main/java/org/schabi/newpipe/about/AboutActivity.java @@ -94,6 +94,9 @@ public class AboutActivity extends AppCompatActivity { int id = item.getItemId(); switch (id) { + case android.R.id.home: + finish(); + return true; case R.id.action_settings: NavigationHelper.openSettings(this); return true; diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 96f09bc67..059e55d61 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -47,9 +47,6 @@ 16dp 16dp - 180dp - 16dp - 16dp 8dp