mirror of
https://github.com/etesync/android
synced 2024-11-16 04:49:06 +00:00
Import - Change toolbar title according to relevant fragment
This commit is contained in:
parent
1629ffba9f
commit
a7c5ccadc9
@ -13,6 +13,7 @@ import android.view.LayoutInflater;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.etesync.syncadapter.App;
|
||||
import com.etesync.syncadapter.R;
|
||||
@ -41,6 +42,8 @@ public class ImportActivity extends AppCompatActivity implements SelectImportMet
|
||||
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
|
||||
setTitle(getString(R.string.import_dialog_title));
|
||||
|
||||
account = getIntent().getExtras().getParcelable(EXTRA_ACCOUNT);
|
||||
info = (CollectionInfo) getIntent().getExtras().getSerializable(EXTRA_COLLECTION_INFO);
|
||||
|
||||
@ -73,6 +76,7 @@ public class ImportActivity extends AppCompatActivity implements SelectImportMet
|
||||
.addToBackStack(LocalContactImportFragment.class.getName())
|
||||
.commit();
|
||||
}
|
||||
setTitle(getString(R.string.import_select_account));
|
||||
}
|
||||
|
||||
private void popBackStack() {
|
||||
@ -121,13 +125,13 @@ public class ImportActivity extends AppCompatActivity implements SelectImportMet
|
||||
|
||||
@Override
|
||||
public void onImportSuccess() {
|
||||
//todo tom what would you like to do?
|
||||
//todo tom what would you like to do? toast?
|
||||
finish();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onImportFailed() {
|
||||
//todo tom what would you like to do?
|
||||
//todo tom what would you like to do? toast?
|
||||
finish();
|
||||
}
|
||||
|
||||
|
@ -252,5 +252,6 @@
|
||||
<!-- Import Activity -->
|
||||
<string name="import_button_file">Import from flie</string>
|
||||
<string name="import_button_account">Import from account</string>
|
||||
<string name="import_select_account">Select Account</string>
|
||||
|
||||
</resources>
|
||||
|
Loading…
Reference in New Issue
Block a user