Add a helper class to perform initial UI fixups (currently adding padding on TV devices)

This commit is contained in:
Cameron Gutman
2014-11-06 20:07:01 -08:00
parent 44f447df7b
commit 350a4d8825
4 changed files with 40 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ import com.limelight.nvstream.wol.WakeOnLanSender;
import com.limelight.preferences.AddComputerManually;
import com.limelight.preferences.StreamSettings;
import com.limelight.utils.Dialog;
import com.limelight.utils.UiHelper;
import android.app.Activity;
import android.app.Service;
@@ -92,6 +93,8 @@ public class PcView extends Activity {
private void initializeViews() {
setContentView(R.layout.activity_pc_view);
UiHelper.notifyNewRootView(this);
// Set default preferences if we've never been run
PreferenceManager.setDefaultValues(this, R.xml.preferences, false);