Small fixes for AboutActivity

* Remove parent activity
 * Finish activity on "up action"
 * Remove unused dimensions
This commit is contained in:
Coffeemakr 2017-07-11 12:52:20 +02:00
parent f13731f91e
commit d950e11332
3 changed files with 3 additions and 7 deletions

View File

@ -212,11 +212,7 @@
<activity <activity
android:name=".about.AboutActivity" android:name=".about.AboutActivity"
android:label="@string/title_activity_about" android:label="@string/title_activity_about"
android:parentActivityName=".MainActivity"
android:theme="@style/AppTheme"> android:theme="@style/AppTheme">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="org.schabi.newpipe.MainActivity" />
</activity> </activity>
</application> </application>

View File

@ -94,6 +94,9 @@ public class AboutActivity extends AppCompatActivity {
int id = item.getItemId(); int id = item.getItemId();
switch (id) { switch (id) {
case android.R.id.home:
finish();
return true;
case R.id.action_settings: case R.id.action_settings:
NavigationHelper.openSettings(this); NavigationHelper.openSettings(this);
return true; return true;

View File

@ -47,9 +47,6 @@
<!-- Default screen margins, per the Android Design guidelines. --> <!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen> <dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen> <dimen name="activity_vertical_margin">16dp</dimen>
<dimen name="app_bar_height">180dp</dimen>
<dimen name="fab_margin">16dp</dimen>
<dimen name="text_margin">16dp</dimen>
<dimen name="appbar_padding_top">8dp</dimen> <dimen name="appbar_padding_top">8dp</dimen>
</resources> </resources>