reasons
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.zoblak.farmalarm;
|
||||
|
||||
import android.content.SharedPreferences;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.support.v4.app.Fragment;
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
@@ -28,7 +30,9 @@ public class MainScreenFragment extends Fragment {
|
||||
WebSettings webSettings = webView.getSettings();
|
||||
webSettings.setJavaScriptEnabled(true);
|
||||
webSettings.setDomStorageEnabled(true);
|
||||
webView.loadUrl("http://agrar.zoblak.com/alarm");
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.getContext());
|
||||
String controllers = prefs.getString("controllers", "");
|
||||
webView.loadUrl("http://agrar.zoblak.com/alarm?controller_id=" + controllers);
|
||||
|
||||
return view;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user