mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-07 18:32:45 +02:00
Fix code spacing
This commit is contained in:
parent
e3b94b163c
commit
472cc1b29a
8 changed files with 12 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"hifi_domains" : [
|
||||
{
|
||||
"name": "You last location",
|
||||
"name": "Your last location",
|
||||
"url": "",
|
||||
"thumbnail": ""
|
||||
},
|
||||
|
|
|
@ -67,7 +67,7 @@ public class GotoActivity extends AppCompatActivity {
|
|||
} catch (URISyntaxException e) {
|
||||
return;
|
||||
}
|
||||
if (uri.getScheme()==null || uri.getScheme().isEmpty()) {
|
||||
if (uri.getScheme() == null || uri.getScheme().isEmpty()) {
|
||||
urlString = "hifi://" + urlString;
|
||||
}
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ public class HomeActivity extends AppCompatActivity implements NavigationView.On
|
|||
mNavigationView = (NavigationView) findViewById(R.id.nav_view);
|
||||
mNavigationView.setNavigationItemSelectedListener(this);
|
||||
|
||||
TabHost tabs=(TabHost)findViewById(R.id.tabhost);
|
||||
TabHost tabs = (TabHost)findViewById(R.id.tabhost);
|
||||
tabs.setup();
|
||||
|
||||
TabHost.TabSpec spec=tabs.newTabSpec("featured");
|
||||
|
@ -64,12 +64,12 @@ public class HomeActivity extends AppCompatActivity implements NavigationView.On
|
|||
spec.setIndicator(getString(R.string.featured));
|
||||
tabs.addTab(spec);
|
||||
|
||||
spec=tabs.newTabSpec("popular");
|
||||
spec = tabs.newTabSpec("popular");
|
||||
spec.setContent(R.id.popular);
|
||||
spec.setIndicator(getString(R.string.popular));
|
||||
tabs.addTab(spec);
|
||||
|
||||
spec=tabs.newTabSpec("bookmarks");
|
||||
spec = tabs.newTabSpec("bookmarks");
|
||||
spec.setContent(R.id.bookmarks);
|
||||
spec.setIndicator(getString(R.string.bookmarks));
|
||||
tabs.addTab(spec);
|
||||
|
@ -77,7 +77,7 @@ public class HomeActivity extends AppCompatActivity implements NavigationView.On
|
|||
tabs.setCurrentTab(0);
|
||||
|
||||
TabWidget tabwidget=tabs.getTabWidget();
|
||||
for(int i=0;i<tabwidget.getChildCount();i++){
|
||||
for(int i=0; i<tabwidget.getChildCount(); i++){
|
||||
TextView tv=(TextView) tabwidget.getChildAt(i).findViewById(android.R.id.title);
|
||||
tv.setTextAppearance(R.style.TabText);
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ public class HomeActivity extends AppCompatActivity implements NavigationView.On
|
|||
SearchView searchView = findViewById(R.id.searchView);
|
||||
int searchPlateId = searchView.getContext().getResources().getIdentifier("android:id/search_plate", null, null);
|
||||
View searchPlate = searchView.findViewById(searchPlateId);
|
||||
if (searchPlate!=null) {
|
||||
if (searchPlate != null) {
|
||||
searchPlate.setBackgroundColor (Color.TRANSPARENT);
|
||||
int searchTextId = searchPlate.getContext ().getResources ().getIdentifier ("android:id/search_src_text", null, null);
|
||||
TextView searchTextView = searchView.findViewById(searchTextId);
|
||||
|
|
|
@ -65,7 +65,7 @@ public class InterfaceActivity extends QtActivity {
|
|||
public void onCreate(Bundle savedInstanceState) {
|
||||
Intent intent = getIntent();
|
||||
if (intent.hasExtra(DOMAIN_URL) && !intent.getStringExtra(DOMAIN_URL).isEmpty()) {
|
||||
intent.putExtra("applicationArguments", "--url "+intent.getStringExtra(DOMAIN_URL));
|
||||
intent.putExtra("applicationArguments", "--url " + intent.getStringExtra(DOMAIN_URL));
|
||||
}
|
||||
super.onCreate(savedInstanceState);
|
||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||
|
|
|
@ -15,7 +15,6 @@ import android.content.Intent;
|
|||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.view.WindowManager;
|
||||
import android.util.Log;
|
||||
import org.qtproject.qt5.android.bindings.QtActivity;
|
||||
|
||||
public class InterfaceActivity extends QtActivity {
|
||||
|
|
|
@ -42,7 +42,7 @@ function onBackPressed() {
|
|||
}
|
||||
|
||||
|
||||
Script.scriptEnding.connect(function () {
|
||||
Script.scriptEnding.connect(function() {
|
||||
if(backButton) {
|
||||
backButton.clicked.disconnect(onBackPressed);
|
||||
}
|
||||
|
|
|
@ -248,12 +248,12 @@ function handleLogin() {
|
|||
|
||||
function onUsernameChanged(username) {
|
||||
if (Account.isLoggedIn()) {
|
||||
MyAvatar.displayName=username;
|
||||
MyAvatar.displayName = username;
|
||||
}
|
||||
}
|
||||
|
||||
function handleLogout() {
|
||||
MyAvatar.displayName="";
|
||||
MyAvatar.displayName = "";
|
||||
if (loginBtn) {
|
||||
loginBtn.editProperties({text: "LOG IN"});
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ function init() {
|
|||
radar.setUniqueColor(uniqueColor);
|
||||
radar.init();
|
||||
|
||||
barQml = new QmlFragment({
|
||||
barQml = new QmlFragment({
|
||||
qml: "hifi/modesbar.qml"
|
||||
});
|
||||
modeButton = barQml.addButton({
|
||||
|
|
Loading…
Reference in a new issue