Update PromoComplianceActivity.java

This commit is contained in:
gagangoel290
2017-01-13 18:30:01 +05:30
committed by GitHub
parent af08ab63ff
commit 17974ee540
@@ -99,12 +99,11 @@ public class PromoComplianceActivity extends AppCompatActivity {
btn_add = (Button) findViewById(R.id.btn_add);
db = new GSKOrangeDB(this);
db.open();
updateResources(getApplicationContext(),preferences.getString(CommonString.KEY_LANGUAGE, ""));
db.open();
//preference data
preferences = PreferenceManager.getDefaultSharedPreferences(this);
updateResources(getApplicationContext(),preferences.getString(CommonString.KEY_LANGUAGE, ""));
store_id = preferences.getString(CommonString.KEY_STORE_ID, null);
visit_date = preferences.getString(CommonString.KEY_DATE, null);
date = preferences.getString(CommonString.KEY_DATE, null);