reactivated resume buttons again
This commit is contained in:
parent
eb5a89b398
commit
be849ef95a
6 changed files with 10 additions and 13 deletions
|
@ -12,7 +12,7 @@ android {
|
||||||
versionName project.ext.versionName
|
versionName project.ext.versionName
|
||||||
|
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
resConfigs "en", "de", "id", "it", "ja", "nb-rNO", "nl", "v21", "w820dp"
|
resConfigs "en", "de", "id", "it", "ja", "nb-rNO", "nl"
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
|
|
2
app/proguard-rules.pro
vendored
2
app/proguard-rules.pro
vendored
|
@ -19,4 +19,4 @@
|
||||||
|
|
||||||
# needed for osmdroid v5.6.5 if using SDK version 26 TODO remove as soom as osmdroid v5.6.6 is released
|
# needed for osmdroid v5.6.5 if using SDK version 26 TODO remove as soom as osmdroid v5.6.6 is released
|
||||||
# see https://github.com/osmdroid/osmdroid/issues/633
|
# see https://github.com/osmdroid/osmdroid/issues/633
|
||||||
-dontwarn org.osmdroid.tileprovider.modules.NetworkAvailabliltyCheck
|
# -dontwarn org.osmdroid.tileprovider.modules.NetworkAvailabliltyCheck
|
||||||
|
|
|
@ -567,16 +567,16 @@ public class MainActivity extends AppCompatActivity implements TrackbookKeys {
|
||||||
/* Shows (and hides) the sub menu of the floating action button */
|
/* Shows (and hides) the sub menu of the floating action button */
|
||||||
private void showFloatingActionButtonMenu(boolean visible) {
|
private void showFloatingActionButtonMenu(boolean visible) {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
// mFloatingActionButtonSubResume.setVisibility(View.VISIBLE);
|
mFloatingActionButtonSubResume.setVisibility(View.VISIBLE);
|
||||||
// mFloatingActionButtonSubResumeLabel.setVisibility(View.VISIBLE);
|
mFloatingActionButtonSubResumeLabel.setVisibility(View.VISIBLE);
|
||||||
mFloatingActionButtonSubClear.setVisibility(View.VISIBLE);
|
mFloatingActionButtonSubClear.setVisibility(View.VISIBLE);
|
||||||
mFloatingActionButtonSubClearLabel.setVisibility(View.VISIBLE);
|
mFloatingActionButtonSubClearLabel.setVisibility(View.VISIBLE);
|
||||||
mFloatingActionButtonSubSave.setVisibility(View.VISIBLE);
|
mFloatingActionButtonSubSave.setVisibility(View.VISIBLE);
|
||||||
mFloatingActionButtonSubSaveLabel.setVisibility(View.VISIBLE);
|
mFloatingActionButtonSubSaveLabel.setVisibility(View.VISIBLE);
|
||||||
mFloatingActionButtonSubMenuVisible = true;
|
mFloatingActionButtonSubMenuVisible = true;
|
||||||
} else {
|
} else {
|
||||||
// mFloatingActionButtonSubResume.setVisibility(View.INVISIBLE);
|
mFloatingActionButtonSubResume.setVisibility(View.INVISIBLE);
|
||||||
// mFloatingActionButtonSubResumeLabel.setVisibility(View.INVISIBLE);
|
mFloatingActionButtonSubResumeLabel.setVisibility(View.INVISIBLE);
|
||||||
mFloatingActionButtonSubClear.setVisibility(View.INVISIBLE);
|
mFloatingActionButtonSubClear.setVisibility(View.INVISIBLE);
|
||||||
mFloatingActionButtonSubClearLabel.setVisibility(View.INVISIBLE);
|
mFloatingActionButtonSubClearLabel.setVisibility(View.INVISIBLE);
|
||||||
mFloatingActionButtonSubSaveLabel.setVisibility(View.INVISIBLE);
|
mFloatingActionButtonSubSaveLabel.setVisibility(View.INVISIBLE);
|
||||||
|
|
|
@ -89,8 +89,8 @@ public final class NotificationHelper implements TrackbookKeys {
|
||||||
builder.setContentTitle(context.getString(R.string.notification_title_trackbook_running));
|
builder.setContentTitle(context.getString(R.string.notification_title_trackbook_running));
|
||||||
builder.setContentText(getContextString(context, track));
|
builder.setContentText(getContextString(context, track));
|
||||||
} else {
|
} else {
|
||||||
// builder.addAction(R.drawable.ic_fiber_manual_record_white_24dp, context.getString(R.string.notification_resume), resuneActionPendingIntent);
|
builder.addAction(R.drawable.ic_fiber_manual_record_white_24dp, context.getString(R.string.notification_resume), resuneActionPendingIntent);
|
||||||
// builder.addAction(R.drawable.ic_compass_needle_white_24dp, context.getString(R.string.notification_show), tapActionPendingIntent);
|
builder.addAction(R.drawable.ic_compass_needle_white_24dp, context.getString(R.string.notification_show), tapActionPendingIntent);
|
||||||
builder.setContentTitle(context.getString(R.string.notification_title_trackbook_not_running));
|
builder.setContentTitle(context.getString(R.string.notification_title_trackbook_not_running));
|
||||||
builder.setContentText(getContextString(context, track));
|
builder.setContentText(getContextString(context, track));
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,7 +134,6 @@
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:contentDescription="@string/descr_fab_sub_menu_button_resume"
|
android:contentDescription="@string/descr_fab_sub_menu_button_resume"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:visibility="gone"
|
|
||||||
app:backgroundTint="@color/trackbook_blue"
|
app:backgroundTint="@color/trackbook_blue"
|
||||||
app:fabSize="mini"
|
app:fabSize="mini"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/fabMainButton"
|
app:layout_constraintBottom_toTopOf="@+id/fabMainButton"
|
||||||
|
@ -150,7 +149,6 @@
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:contentDescription="@string/descr_fab_sub_menu_label_resume"
|
android:contentDescription="@string/descr_fab_sub_menu_label_resume"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:visibility="gone"
|
|
||||||
app:cardBackgroundColor="@color/fab_button_card_background"
|
app:cardBackgroundColor="@color/fab_button_card_background"
|
||||||
app:cardCornerRadius="4dp"
|
app:cardCornerRadius="4dp"
|
||||||
app:cardElevation="4dp"
|
app:cardElevation="4dp"
|
||||||
|
@ -166,7 +164,6 @@
|
||||||
android:paddingLeft="6dp"
|
android:paddingLeft="6dp"
|
||||||
android:paddingRight="6dp"
|
android:paddingRight="6dp"
|
||||||
android:paddingTop="2dp"
|
android:paddingTop="2dp"
|
||||||
android:visibility="gone"
|
|
||||||
android:text="@string/fab_sub_menu_resume"
|
android:text="@string/fab_sub_menu_resume"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
android:textColor="@color/fab_button_card_text"
|
android:textColor="@color/fab_button_card_text"
|
||||||
|
|
|
@ -20,8 +20,8 @@ allprojects {
|
||||||
}
|
}
|
||||||
project.ext {
|
project.ext {
|
||||||
applicationId = 'org.y20k.trackbook'
|
applicationId = 'org.y20k.trackbook'
|
||||||
versionCode = 22
|
versionCode = 23
|
||||||
versionName = '1.1.6'
|
versionName = '1.1.7'
|
||||||
minSdkVersion = 22
|
minSdkVersion = 22
|
||||||
compileSdkVersion = 27
|
compileSdkVersion = 27
|
||||||
targetSdkVersion = 27
|
targetSdkVersion = 27
|
||||||
|
|
Loading…
Reference in a new issue