1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 10:05:49 +01:00

Add back arrow ← to Sports Activity Detail

This commit is contained in:
vanous 2020-08-15 14:45:43 +02:00
parent 7cc4b16852
commit 78cd8e55b7
2 changed files with 13 additions and 0 deletions

View File

@ -422,6 +422,7 @@
<activity
android:name=".activities.ActivitySummaryDetail"
android:label="@string/activity_summary_detail"
android:parentActivityName=".activities.ActivitySummariesActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />

View File

@ -23,6 +23,7 @@ import android.graphics.Color;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.Gravity;
import android.view.MenuItem;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
@ -355,4 +356,15 @@ public class ActivitySummaryDetail extends AbstractGBActivity {
}
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
// back button
finish();
return true;
}
return super.onOptionsItemSelected(item);
}
}