Workaround for broken recording button (see #43)

This commit is contained in:
y20k 2018-09-26 16:01:24 +02:00
parent 163ea4959f
commit 5c49b7002a
2 changed files with 12 additions and 4 deletions

View file

@ -594,16 +594,24 @@ public class MainActivity extends AppCompatActivity implements TrackbookKeys {
switch (mFloatingActionButtonState) {
case FAB_STATE_DEFAULT:
mFloatingActionButtonMain.hide(); // workaround todo remove asap
mFloatingActionButtonMain.setImageResource(R.drawable.ic_fiber_manual_record_white_24dp);
mFloatingActionButtonMain.show(); // workaround todo remove asap
break;
case FAB_STATE_RECORDING:
mFloatingActionButtonMain.hide(); // workaround todo remove asap
mFloatingActionButtonMain.setImageResource(R.drawable.ic_fiber_manual_record_red_24dp);
mFloatingActionButtonMain.show(); // workaround todo remove asap
break;
case FAB_STATE_SAVE:
mFloatingActionButtonMain.hide(); // workaround todo remove asap
mFloatingActionButtonMain.setImageResource(R.drawable.ic_save_white_24dp);
mFloatingActionButtonMain.show(); // workaround todo remove asap
break;
default:
mFloatingActionButtonMain.hide(); // workaround todo remove asap
mFloatingActionButtonMain.setImageResource(R.drawable.ic_fiber_manual_record_white_24dp);
mFloatingActionButtonMain.show(); // workaround todo remove asap
break;
}
}

View file

@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0-alpha10'
classpath 'com.android.tools.build:gradle:3.3.0-alpha11'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
@ -28,9 +28,9 @@ allprojects {
buildToolsVersion = '28.0.2'
constraintlayoutVersion = '1.1.3'
materialVersion = "1.0.0-rc02"
appcompatVersion = '1.0.0-rc02'
cardviewVersion = '1.0.0-rc02'
materialVersion = "1.0.0"
appcompatVersion = '1.0.0'
cardviewVersion = '1.0.0'
osmdroidVersion = '6.0.2'
gsonVersion = '2.8.5'