This commit is contained in:
denny
2016-03-13 20:06:26 -04:00
parent 86816228c2
commit 6eade2b7ea
2 changed files with 62 additions and 1 deletions

View File

@@ -202,7 +202,7 @@ public class TunerConfigurationModel extends AbstractTableModel
if( configurationName == null )
{
configurationName = "Default-" + uniqueID;
configurationName = uniqueID;
}
List<TunerConfiguration> configs = getTunerConfigurations( type );
@@ -229,6 +229,22 @@ public class TunerConfigurationModel extends AbstractTableModel
return config;
}
public boolean hasTunerConfiguration( TunerType type, String name )
{
for( TunerConfiguration config: mTunerConfigurations )
{
if( config.getTunerType() == type &&
config.getName().contentEquals( name ) )
{
mLog.debug( "Returning true for name: " + name );
return true;
}
}
mLog.debug( "Returning false for name: " + name );
return false;
}
/**
* Assigns the tuner configuration to the tuner identified by the uniqueID