Commit 267f77dc authored by Christian Dresen's avatar Christian Dresen
Browse files

Changed to Production URL

parent 56c1f8c0
......@@ -16,7 +16,6 @@ import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.WindowManager;
import android.widget.Toast;
import java.util.ArrayList;
......@@ -51,7 +50,7 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().addFlags(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
setContentView(R.layout.activity_main);
this.findViewById(R.id.mainLayout).setOnKeyListener(this);
......@@ -152,9 +151,6 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe
});
this.barcodeLearnDialog.show();
break;
case R.id.action_exit:
finish();
break;
default:
break;
}
......@@ -208,33 +204,4 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe
// nothing to do here
// … really
}
/*
@Override
public boolean onKey(View v, int keyCode, KeyEvent event) {
if (event.getAction()==KeyEvent.ACTION_DOWN && event.getKeyCode() == KeyEvent.KEYCODE_ENTER) {
if(this.atxvAdapter.getCount() == 1) {
setCurrentUser(SQLiteService.getInstance().remoteGetUser(((User) this.atxvAdapter.getItem(0)).getUserid()));
this.atxvName.setText(this.atxvAdapter.getItem(0).toString());
this.atxvName.dismissDropDown();
}
return true;
}
return false;
}
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
setCurrentUser(SQLiteService.getInstance().remoteGetUser(((User) this.atxvAdapter.getItem(position)).getUserid()));
}
@Override
public void onClick(DialogInterface dialog, int which) {
this.currentUser.setCredit(this.currentUser.getCredit() - this.getTotal());
this.currentUser.save();
RestClient.getInstance().saveUserCredit(this.currentUser);
this.clearCurrentUser();
}
*/
}
......@@ -70,7 +70,7 @@ public class MainManager {
private RestService createRestService() {
Retrofit.Builder builder = new Retrofit.Builder()
.baseUrl("https://infra-test.warpzone/api/")
.baseUrl("https://infra.warpzone/api/")
.addConverterFactory(GsonConverterFactory.create());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment