Added always active hint

This commit is contained in:
M66B
2020-02-23 19:16:50 +01:00
parent 5c7378cdfa
commit fe37d7f26b
4 changed files with 73 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ScrollView;
import android.widget.Toast;
@@ -1238,8 +1239,19 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
LayoutInflater inflater = LayoutInflater.from(getContext());
View dview = inflater.inflate(R.layout.dialog_first, null);
Button btnInfo = dview.findViewById(R.id.btnInfo);
btnInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(getContext(), 39);
}
});
return new AlertDialog.Builder(getContext())
.setMessage(getString(R.string.title_hint_sync))
.setView(dview)
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {